Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
abrzezinski94 committed Oct 8, 2024
1 parent 5c35cc6 commit 8a98385
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 421 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/ci-main-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- name: Run CodeQL
uses: github/codeql-action/analyze@v2

sca:
name: Dependency Scan
runs-on: ubuntu-latest
Expand Down Expand Up @@ -54,41 +54,41 @@ jobs:
format: 'table'
severity: 'CRITICAL'
exit-code: '1'

- name: Upload scan results
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: 'trivy-results.sarif'

test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn

- name: Cache dependencies
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Cache dependencies
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
run: yarn ci
- name: Install dependencies
run: yarn ci

- name: Run tests
run: yarn test-all
- name: Run tests
run: yarn test-all

pass:
name: All tests pass
needs: ['sast', 'sca', 'test']
runs-on: ubuntu-latest
steps:
- run: echo ok
- run: echo ok
Loading

0 comments on commit 8a98385

Please sign in to comment.