Mock TwitchBot for local builds #45
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: ts-eslint-ci | |
on: | |
pull_request: | |
paths: | |
- "src/**" | |
- "scripts/node/**" | |
- ".github/workflows/ts-ci.yml" | |
- ".github/actions/**" | |
- "yarn.lock" | |
permissions: | |
id-token: write # Needed for gcloud auth. | |
contents: read | |
jobs: | |
ts-eslint-ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: git lfs pull | |
uses: ./.github/actions/cached-lfs-pull | |
- name: yarn install | |
uses: ./.github/actions/cached-yarn-install | |
- name: bazel setup | |
uses: ./.github/actions/bazel | |
- name: Create/activate virtual environment. | |
run: python3 -m venv .venv && echo "$(pwd)/.venv/bin" >> $GITHUB_PATH | |
- run: ./b ts-deps build | |
- name: Restore eslint cache. | |
uses: ./.github/actions/cached-eslint | |
- run: ./b lint ts --cache-strategy content |