Skip to content

Compatibility tests scheduled run with slack reporting #458

Compatibility tests scheduled run with slack reporting

Compatibility tests scheduled run with slack reporting #458

name: Compatibility tests scheduled run with slack reporting
on:
schedule:
- cron: "0 7 * * *"
- cron: "0 12 * * *"
- cron: "0 18 * * *"
- cron: "0 22 * * *"
workflow_dispatch:
jobs:
test:
name: Run Tests on Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
issues: write
pull-requests: write
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Create config.yml file from secret
env:
CONFIG_YML_CONTENT: ${{ secrets.CONFIG_YML_CONTENT }}
run: |
echo "$CONFIG_YML_CONTENT" > config.yml
- name: Cache node_modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ubuntu-latest-npm-cache-${{ hashFiles('package-lock.json') }}
restore-keys: |
ubuntu-latest-npm-cache-
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22' # or specify any version you need
- name: Cache downloaded versions
uses: actions/cache@v3
with:
path: heartsFolder/
key: ubuntu-latest-hearts-cache
- name: Run getHearts.sh script
run: |
chmod +x ./getHearts.sh
./getHearts.sh ubuntu-latest amd64
- name: Install dependencies
run: npm install
- name: Run compatibility tests
run: npm run test:comp:testomatio
timeout-minutes: 20
env:
TESTOMATIO: ${{ secrets.TESTOMATIO }}
GH_PAT: ${{ github.token }}
GH_KEEP_OUTDATED_REPORTS: 1
SLACK_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_CHANNEL: 'C07MSKBQ7SM' #test-report channel id