Skip to content

Commit

Permalink
Refactor CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber623 committed Sep 26, 2023
1 parent 2df6cf6 commit 098a32d
Showing 1 changed file with 5 additions and 30 deletions.
35 changes: 5 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
name: CI

on: [push, pull_request]
on:
pull_request:
workflow_call:
workflow_dispatch:

jobs:
analyze:
name: Analyze
permissions:
contents: read
security-events: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: github/codeql-action/init@v2
with:
languages: javascript
- uses: github/codeql-action/analyze@v2
lint:
name: Lint
runs-on: ubuntu-latest
Expand All @@ -26,25 +17,9 @@ jobs:
cache: npm
- run: npm ci
- run: npm run lint
build:
name: Build
needs: [analyze, lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: npm
- run: npm ci
- run: npm run build
- name: Check for changed files
run: |
git status
git diff --quiet
test:
name: Test
needs: build
needs: lint
runs-on: macos-latest
strategy:
matrix:
Expand Down

0 comments on commit 098a32d

Please sign in to comment.