name: "build-test" | |
on: # rebuild any PRs and main branch changes | |
pull_request: | |
push: | |
branches: | |
- master | |
- 'releases/*' | |
jobs: | |
# make sure build/ci work properly | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- run: | | |
npm install | |
npm run all | |
# make sure the action works on a clean machines without building | |
test1: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: ./ | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
# TODO: add more (race conditions, failures, etc) |