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 name: Comment on Pull Request
on: on:
- pull_request pull_request:
jobs: jobs:
comment: comment:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- uses: ./ - uses: ./
with: with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

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

View file

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