Skip to content

Commit

Permalink
Only build when pushed to master
Browse files Browse the repository at this point in the history
  • Loading branch information
zewish committed Sep 9, 2023
1 parent e05d4f5 commit 33593e4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: build
on: [push, pull_request]
on:
push:
branches:
- master
permissions:
contents: read
pages: write
Expand All @@ -16,7 +19,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: lts/*
check-latest: true
- name: Build and test
run: |
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: test
on: [pull_request]
concurrency:
group: "test"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: lts/*
check-latest: true
- name: Build and test
run: |
npm ci
npm run prepare
- name: Check coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 33593e4

Please sign in to comment.