chore: update eslint #95
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
ARTIFACTS_DIR: ./artifacts | |
jobs: | |
commit-watch: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' && !contains(github.event.head_commit.message, '[skip ci]') | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Prepare Environment | |
uses: ./.github/actions/prepare-env | |
- name: Commit Watch | |
env: | |
COMMIT_WATCH_OUTPUT_DIR: ${{ env.ARTIFACTS_DIR }} | |
COMMITWATCH_GITHUB_TOKEN: ${{ secrets.PR_BOT_GITHUB_TOKEN }} | |
CI_REPO_OWNER: ${{ github.repository_owner }} | |
CI_REPO_NAME: ${{ github.event.repository.name }} | |
CI_COMMIT_SHA: ${{ github.event.pull_request.head.sha }} | |
CI_BASE_BRANCH: origin/${{ github.base_ref }} | |
run: yarn dlx commit-watch | |
build-and-test: | |
name: Build & Test | |
runs-on: ubuntu-latest | |
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Prepare Environment | |
uses: ./.github/actions/prepare-env | |
- uses: actions/cache@v4 | |
with: | |
path: .turbo | |
key: ${{ github.job }}-${{ github.ref_name }}-${{ github.sha }} | |
restore-keys: ${{ github.job }}-${{ github.ref_name }}- | |
- name: Build packages | |
run: yarn prepack | |
- name: Tests | |
run: yarn test | |
- name: Lint | |
run: yarn lint | |
- name: Typecheck | |
run: yarn typecheck |