Bump @typescript-eslint/eslint-plugin from 8.8.0 to 8.12.2 #2214
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: Integration tests | |
on: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
concurrency: discord_api | |
env: | |
DISCORD_BOT_TOKEN: "${{ secrets.DISCORD_BOT_TOKEN }}" | |
TEST_CHANNEL_ID: "${{ secrets.TEST_CHANNEL_ID }}" | |
SCRAPE_URL: http://localhost:8090 | |
FETCH_INTERVAL: 1000 | |
FETCH_INTERVAL_RANDOM: 0 | |
API_PORT: 3050 | |
steps: | |
- name: Check secrets | |
if: ${{ env.DISCORD_BOT_TOKEN == null }} | |
uses: actions/github-script@v3 | |
with: | |
script: | | |
core.setFailed('Secrets not available.') | |
- name: Branch based PR checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22.x" | |
- run: npm ci | |
- run: npm run build | |
- name: Create subs file for tests # Workaround for bot not receiving messages from test channel | |
uses: "DamianReeves/write-file-action@master" | |
with: | |
path: subs.txt | |
write-mode: overwrite | |
contents: | | |
${{ secrets.TEST_CHANNEL_ID }} | |
- run: npm start & npx wait-on -t 60000 http://localhost:${{ env.API_PORT }}/health | |
- run: npm test | |
- run: | | |
echo "Integration tests... success! ;-)" | |
- name: Fail cancelled workflow | |
if: ${{ cancelled() }} | |
uses: actions/github-script@v3 | |
with: | |
script: | | |
core.setFailed('Workflow cancelled.') |