periodic check #1238
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: periodic check | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0,12 * * *' | |
env: | |
DB_PATH: ./db.sqlite | |
jobs: | |
tests: | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
tests: [xcm-transfer, acala, bridge-sdk] | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- name: Setup yarn | |
run: npm install -g yarn | |
- name: setup node env | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
cache: 'yarn' | |
- run: yarn --immutable | |
- run: yarn update-env | |
- run: yarn test tests/${{ matrix.tests }} | |
- uses: ravsamhq/notify-slack-action@v2 | |
if: ${{ failure() }} | |
with: | |
status: ${{ job.status }} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |