Skip to content

Commit

Permalink
Update CI.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
johntalton committed May 26, 2024
1 parent fc83233 commit f42971e
Showing 1 changed file with 3 additions and 29 deletions.
32 changes: 3 additions & 29 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,12 @@ name: CI
on: push

jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4.0.2
- run: npm install
- run: npm run build
- run: npm run format
- uses: actions/upload-artifact@v4
with:
name: lib
path: lib/
- uses: actions/upload-artifact@v4
with:
name: aod.min
path: aod.min*
Test:
needs: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16, 20]
os: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4.0.2
with:
node-version: ${{ matrix.node-version }}
- uses: actions/download-artifact@v4
with:
name: lib
path: lib
- uses: actions/setup-node@v4
- run: npm install
- run: npm run build --if-exits
- run: npm run lint --if-exists
- run: npm run test --if-exists
- run: npm run coverage --if-exists

0 comments on commit f42971e

Please sign in to comment.