chore: Fix linter #347
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: # rebuild any PRs and main branch changes | |
pull_request: | |
push: | |
branches: | |
- main | |
- 'releases/*' | |
jobs: | |
build: # make sure build/ci work properly | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- id: install-dependencies | |
run: yarn | |
- id: build | |
run: yarn build | |
- id: package | |
run: yarn package | |
- id: test | |
run: yarn test | |
- id: lint | |
run: yarn lint | |
- uses: ./ | |
if: always() | |
with: | |
status: ${{ job.status }} | |
steps: ${{ toJson(steps) }} | |
jobName: Build | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
test: # make sure the action works on a clean machine without building | |
runs-on: ubuntu-latest | |
name: Integration Tests | |
steps: | |
- uses: actions/checkout@v2 | |
if: ${{ !env.ACT }} | |
- uses: actions/checkout@v2 | |
if: ${{ env.ACT }} | |
with: | |
path: actions-slack-notify | |
- uses: ./ | |
if: always() | |
with: | |
status: ${{ job.status }} | |
steps: ${{ toJson(steps) }} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |