Bump eslint-plugin-jest from 26.8.7 to 27.4.0 #1629
Workflow file for this run
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: Check, Build, and Run | |
on: | |
pull_request: | |
types: ['opened', 'synchronize'] | |
push: | |
branches: | |
- main | |
- 'releases/*' | |
env: | |
HUSKY_SKIP_INSTALL: '1' | |
jobs: | |
fmt: | |
name: Run code checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/[email protected] | |
with: | |
node-version-file: .node-version | |
cache: npm | |
- name: Install deps | |
run: npm ci | |
- name: Check formatting | |
run: npm run format-check | |
lint: | |
name: Run code checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/[email protected] | |
with: | |
node-version-file: .node-version | |
cache: npm | |
- name: Install deps | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
test: | |
name: Run code checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/[email protected] | |
with: | |
node-version-file: .node-version | |
cache: npm | |
- name: Install deps | |
run: npm ci | |
- name: Test | |
run: npm run test | |
build: | |
name: Build action | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/[email protected] | |
with: | |
node-version-file: .node-version | |
cache: npm | |
- name: Install deps | |
run: npm ci | |
- name: Build action | |
run: npm run build | |
- name: Verify no unstaged changes | |
run: .github/util/verify-no-unstaged-changes.sh | |
# TODO(cooper): Disabling these integration tests until we fix dependabot PR | |
# run-action: | |
# name: Run action | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout repo | |
# uses: actions/[email protected] | |
# - name: Generate files to commit | |
# run: | | |
# echo "$(date): Testing ${GITHUB_SHA}" > test.txt | |
# echo "static value" > static.txt | |
# - name: Run action against test with default token | |
# uses: ./ | |
# with: | |
# branch: test | |
# message: ':robot: Test commit' | |
# glob-patterns: test.txt | |
# - name: Run action against protected-test with admin token | |
# uses: ./ | |
# with: | |
# token: ${{ secrets.QUIZLET_GIT_BOT_TOKEN }} | |
# branch: protected-test | |
# message: ':robot: Test commit' | |
# glob-patterns: test.txt | |
# - name: Run action against unchanged file | |
# id: unchanged-commit | |
# uses: ./ | |
# with: | |
# branch: test | |
# message: ':robot: Test commit of static.txt' | |
# glob-patterns: static.txt | |
# - name: Fail if unchanged file was committed | |
# run: | | |
# if [[ -n "${{steps.unchanged-commit.outputs.sha}}" ]] | |
# then | |
# echo "::error::Action commited the unchanged file" | |
# exit 1 | |
# fi |