-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test commit 885da24 Author: Simon <[email protected]> Date: Fri Feb 9 10:10:23 2024 +0100 test3 commit 090e41a Author: Simon <[email protected]> Date: Fri Feb 9 10:04:25 2024 +0100 test commit 3cf3bae Author: Simon <[email protected]> Date: Fri Feb 9 10:00:48 2024 +0100 test commit 6dc521e Author: Simon <[email protected]> Date: Fri Feb 9 09:54:06 2024 +0100 update pipeline commit ee6c0a5 Author: Simon <[email protected]> Date: Fri Feb 9 09:49:06 2024 +0100 update pipeline commit a92baf0 Author: Simon <[email protected]> Date: Fri Feb 9 09:45:33 2024 +0100 update pipeline commit bd27075 Author: Simon <[email protected]> Date: Fri Feb 9 09:40:38 2024 +0100 update pipeline commit 6c7b20e Author: Simon <[email protected]> Date: Fri Feb 9 09:09:06 2024 +0100 fix issue with npm ci commit ef2d3a8 Author: Simon <[email protected]> Date: Fri Feb 9 09:01:22 2024 +0100 add pipeline for scanner
- Loading branch information
Showing
3 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Scanner Build Stage | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
defaults: | ||
run: | ||
working-directory: ./scanner | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Cache node modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Install dependencies | ||
run: npm ci --prefer-offline | ||
|
||
- name: Build | ||
run: npm run build | ||
env: | ||
CI: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: Scanner Test Stage | ||
|
||
on: | ||
# push: | ||
# pull_request: | ||
workflow_run: | ||
workflows: | ||
- Scanner Build Stage | ||
types: | ||
- completed | ||
|
||
defaults: | ||
run: | ||
working-directory: ./scanner | ||
|
||
jobs: | ||
lint: | ||
# if: jobs.build.result == 'success' | ||
runs-on: ubuntu-latest | ||
# needs: build | ||
# uses: ./.github/workflows/scanner-build.yml | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18" | ||
|
||
- name: Install dependencies | ||
run: npm ci --prefer-offline | ||
|
||
- name: Lint | ||
run: npm run test:lint | ||
|
||
type-check: | ||
# if: jobs.build.result == 'success' | ||
runs-on: ubuntu-latest | ||
# needs: build | ||
# uses: ./.github/workflows/scanner-build.yml | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Install dependencies | ||
run: npm ci --prefer-offline | ||
|
||
- name: Type check | ||
run: npm run test:typecheck | ||
|
||
unit-test: | ||
# if: jobs.build.result == 'success' | ||
runs-on: ubuntu-latest | ||
# needs: build | ||
# uses: ./.github/workflows/scanner-build.yml | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
|
||
- name: Install dependencies | ||
run: npm ci --prefer-offline | ||
|
||
- name: Unit test | ||
run: npm run test:unittest | ||
- name: Upload coverage report | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: coverage-report | ||
path: coverage/cobertura-coverage.xml | ||
|
||
|