Skip to content

Commit

Permalink
ci: add lint action, use composite setup action in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
karrui committed Sep 3, 2024
1 parent d8c58c4 commit a707bc6
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- uses: ./.github/actions/setup

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Lint
run: npm run lint

unit-integration-tests:
name: Unit & integration tests
Expand All @@ -30,11 +34,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- uses: ./.github/actions/setup
- name: Test
run: npm run test:vitest

Expand All @@ -46,11 +46,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Install Playwright (Chromium)
run: npx playwright install chromium
- name: Load .env file
Expand Down

0 comments on commit a707bc6

Please sign in to comment.