Skip to content

Commit

Permalink
refactor yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhoffa committed Aug 9, 2024
1 parent 4a47fb2 commit 1d07095
Showing 1 changed file with 30 additions and 9 deletions.
39 changes: 30 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,55 @@ on:
- main

jobs:
test:
setup:
name: Install Node and Dependencies
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.18.2]

outputs:
node_version: ${{ steps.node_version.outputs.node-version }}
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
id: node_version
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: '18.18.2'
cache: 'npm'

- name: Install dependencies
run: npm install

unit_tests:
name: Run Unit Tests
needs: setup
runs-on: ubuntu-latest
steps:
- name: Run Unit Tests
run: npm run test:unit

integration_tests:
name: Run Integration Tests
needs: setup
runs-on: ubuntu-latest
steps:
- name: Download Browser
run: npx playwright install
- name: Run Integration Tests
run: npm run test:integration

- name: Lint Codebase
lint:
name: Run Linting
needs: setup
runs-on: ubuntu-latest
steps:
- name: Run Linting
run: npm run lint

- name: Check Types
type_check:
name: Run Type Checking
needs: setup
runs-on: ubuntu-latest
steps:
- name: Run Type Checking
run: npm run check

0 comments on commit 1d07095

Please sign in to comment.