Skip to content

Commit

Permalink
Clean up CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed May 7, 2024
1 parent 8422d81 commit 3c48723
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,16 @@
name: Main

on: [pull_request, push]
on:
pull_request:
push:
branches: main

jobs:
build:
test:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@v4
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm run test
- name: Format
run: npm run fmtcheck
# - name: "check for uncommitted changes"
# # Ensure no changes, but ignore node_modules dir since dev/fresh ci deps installed.
# run: |
# git diff --exit-code --stat -- . ':!node_modules' \
# || (echo "##[error] found changed files after build. please 'npm run build && npm run fmt'" \
# "and check in all changes" \
# && exit 1)
- uses: actions/checkout@v4
- run: npm ci
- run: npm run build
- run: npm run test
- run: npm run fmtcheck

0 comments on commit 3c48723

Please sign in to comment.