build updates (#256)

* Update test to build on main branch instead of master
* Update workflows to use actions/checkout@v2, which performs a
  shallow clone by default, so should be slightly faster
This commit is contained in:
Jonathan Yu 2021-03-21 14:14:27 -07:00 committed by GitHub
parent 9632fd5dc1
commit 832d4d1261
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -1,12 +1,12 @@
name: Comment on Pull Request
on:
- pull_request
pull_request:
jobs:
comment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: ./
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -1,12 +1,12 @@
name: Comment on Push
on:
- push
push:
jobs:
comment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: jwalton/gh-find-current-pr@v1
id: finder
with:

View file

@ -3,12 +3,12 @@ on:
pull_request:
push:
branches:
- master
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- run: npm ci
- run: npm run all