Skip to content

Commit

Permalink
chore: run linting in spearate job, use v8 instead of c8, enable cove…
Browse files Browse the repository at this point in the history
…rage
  • Loading branch information
danez committed Jun 13, 2023
1 parent 7d6f6c4 commit d4db9c3
Show file tree
Hide file tree
Showing 3 changed files with 468 additions and 785 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@ on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Linting
run: npm run format:ci
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
Expand Down Expand Up @@ -38,16 +52,13 @@ jobs:
check-latest: true
- name: Install dependencies
run: npm ci
- name: Linting
run: npm run format:ci
if: "${{ matrix.node-version == '*' }}"
- name: Tests
run: npm run test:ci
- name: Get test coverage flags
id: test-coverage-flags
run: |-
os=${{ matrix.os }}
node=${{ matrix.node-version }}
node=$(node --version)
echo "os=${os/-latest/}" >> $GITHUB_OUTPUT
echo "node=node_${node//[.*]/}" >> $GITHUB_OUTPUT
shell: bash
Expand Down
Loading

0 comments on commit d4db9c3

Please sign in to comment.