Skip to content

Commit

Permalink
chore(ci): simplify CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkdev98 committed Jul 10, 2024
1 parent 4cd0b77 commit 4a24ee8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 197 deletions.
41 changes: 36 additions & 5 deletions .github/workflows/main-checks.yml → .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,38 @@ name: Checks
on:
push:
branches: [main]
pull_request:

jobs:
lint:
permissions:
contents: read
timeout-minutes: 15
strategy:
matrix:
node: [20]
runs-on: ubuntu-latest
env:
CI: true
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Node.js ${{ matrix.node }}
uses: actions/setup-node@v4.0.2
with:
node-version: ${{ matrix.node }}
cache: "npm"

- name: Install dependencies
run: |
npm ci
- name: Run compas lint
run: |
CI=false npx compas generate
npx compas lint
types:
permissions:
contents: read
Expand Down Expand Up @@ -39,8 +69,8 @@ jobs:
timeout-minutes: 15
strategy:
matrix:
node: [18, 20]
postgresVersion: [12, 13, 14]
node: [18, 20, 22]
postgresVersion: [12, 14, 16]
runs-on: ubuntu-latest
env:
CI: true
Expand Down Expand Up @@ -82,8 +112,8 @@ jobs:
timeout-minutes: 15
strategy:
matrix:
node: [18]
postgresVersion: [14]
node: [20]
postgresVersion: [15]
runs-on: ubuntu-latest
env:
CI: true
Expand Down Expand Up @@ -121,13 +151,13 @@ jobs:
path: .cache/

- name: Upload coverage
if: matrix.node == '18'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage

sync-website:
if: ${{ github.event.ref == 'refs/heads/main' }}
permissions:
contents: read
timeout-minutes: 15
Expand Down Expand Up @@ -168,6 +198,7 @@ jobs:
analyze:
name: Analyze
if: ${{ github.event.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
permissions:
security-events: write
Expand Down
192 changes: 0 additions & 192 deletions .github/workflows/pr-checks.yml

This file was deleted.

0 comments on commit 4a24ee8

Please sign in to comment.