Skip to content

Commit

Permalink
refactor: upgrade action version
Browse files Browse the repository at this point in the history
  • Loading branch information
kidneyweakx committed Sep 25, 2023
1 parent b424fe2 commit 25d4f1d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 22 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,23 @@ on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
branches: [ '*' ]

jobs:
test-cryptogen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- run: npm ci
- run: npm run build:console
- run: ./cicd/test_script/cryptogen.sh

test-ca:
runs-on: ubuntu-latest
needs: test-cryptogen
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'
- run: npm ci
- run: npm run build:console
- run: ./cicd/test_script/ca.sh

15 changes: 6 additions & 9 deletions .github/workflows/lint-and-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,21 @@ on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
branches: [ '*' ]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- run: npm ci
- run: npm run eslint

compile:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'
- run: npm ci
- run: npm run build-ts
- run: npm run build-ts
5 changes: 3 additions & 2 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ jobs:
sonarqube-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm ci
- run: npm run test:sonar
- uses: sonarsource/sonarqube-scan-action@master
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm ci
- run: npm run build:console
- run: npm run test:coverage

0 comments on commit 25d4f1d

Please sign in to comment.