chore: Modernise tooling #226
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: Continuous Integration | |
env: | |
FORCE_COLOR: 3 | |
on: | |
push: | |
branches: | |
- next | |
- feature/* | |
- dependabot/* | |
pull_request: | |
types: [opened, edited, reopened, synchronize] | |
jobs: | |
ci: | |
name: Continuous Integration | |
runs-on: ubuntu-latest | |
steps: | |
- id: yarn-cache | |
name: Get Yarn cache path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b | |
with: | |
node-version: lts/* | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 | |
name: Load Yarn cache | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- run: yarn install | |
name: Install dependencies | |
- name: Run integration tests | |
run: | | |
yarn build | |
yarn test:types | |
yarn test:unit | |
yarn test:integration | |
yarn test:coverage:merge | |
yarn test:coverage:report | |
- uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 | |
name: Report code coverage | |
continue-on-error: true | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: 47ng/actions-slack-notify@main | |
name: Notify on Slack | |
if: always() | |
continue-on-error: true | |
with: | |
status: ${{ job.status }} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |