chore: update trigger types (#108) #699
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: Build and test | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache YARN dependencies | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.OS }}-yarn-cache-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.OS }}-yarn-cache- | |
- name: Install | |
run: yarn --no-progress --non-interactive --frozen-lockfile | |
- name: Lint | |
run: yarn lint | |
- name: Prettier | |
run: yarn format | |
- name: Build | |
run: yarn build | |
- name: Test | |
run: CI=true yarn test | |
# Few tips github actions | |
# - name: Setup SSH debug session | |
# uses: mxschmitt/action-tmate@v2 |