Bump @typescript-eslint/eslint-plugin from 7.18.0 to 8.21.0 #30
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: tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- "**" | |
tags: | |
- "!**" | |
workflow_call: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- uses: actions/checkout@v4 | |
- run: npm ci | |
- run: npm run build | |
- run: npm run format-check | |
- run: npm run lint | |
- name: Verify no unstaged changes | |
shell: bash | |
run: | | |
if [[ "$(git status --porcelain)" != "" ]]; then | |
echo ---------------------------------------- | |
echo git status | |
echo ---------------------------------------- | |
git status | |
echo ---------------------------------------- | |
echo git diff | |
echo ---------------------------------------- | |
git diff | |
echo ---------------------------------------- | |
echo Troubleshooting | |
echo ---------------------------------------- | |
echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && npm ci && npm run format && npm run build" | |
exit 1 | |
fi | |
testing: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Test same hash | |
uses: ./ | |
with: | |
head-ref: ${{ github.sha }} | |
base-ref: ${{ github.sha }} | |
- name: Test versus main | |
uses: ./ | |
with: | |
head-ref: ${{ github.sha }} | |
base-ref: "main" | |
- name: Test default head-ref fallback | |
uses: ./ | |
with: | |
head-ref: "" | |
base-ref: ${{ github.sha }} | |
- name: Test default base-ref fallback | |
uses: ./ | |
with: | |
head-ref: ${{ github.sha }} | |
base-ref: "" | |
- name: Get refspecs | |
id: get-refspecs | |
shell: bash | |
run: | | |
echo head-ref=$(git rev-parse HEAD) >> $GITHUB_OUTPUT | |
echo base-ref=$(git rev-parse HEAD~10) >> $GITHUB_OUTPUT | |
- name: Test `fail-after` is not triggered | |
uses: ./ | |
with: | |
head-ref: ${{ steps.get-refspecs.outputs.head-ref }} | |
base-ref: ${{ steps.get-refspecs.outputs.base-ref }} | |
deepen-length: 1 | |
fail-after: 6 | |
- name: Test `fail-after` is triggered | |
id: test_fail-after | |
uses: ./ | |
continue-on-error: true | |
with: | |
head-ref: ${{ steps.get-refspecs.outputs.head-ref }} | |
base-ref: ${{ steps.get-refspecs.outputs.base-ref }} | |
deepen-length: 1 | |
fail-after: 5 | |
- name: Check failures | |
shell: bash | |
run: | | |
if [[ ${{ steps.test_fail-after.outcome }} != "failure" ]]; then | |
echo "Test fail-after failed"; | |
exit 1; | |
fi |