Bump discord.js from 14.11.0 to 14.14.1 #1890
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@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16.x" | |
- run: npm ci | |
- run: npm run build | |
- 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.') |