Skip to content

Commit

Permalink
Add github actions workflow for test-runner
Browse files Browse the repository at this point in the history
  • Loading branch information
ZIMkaRU committed Oct 9, 2023
1 parent 73fd714 commit 7633001
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build-electron-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Run tests
run-name: 'Test: Commit ${{ github.sha }}'

on:
pull_request:
types: [opened, reopened, edited]
branches:
- master
workflow_dispatch:

jobs:
linux-test-runner:
timeout-minutes: 90
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 18.17.1
- name: Setup configs
run: |
cp config/common.json.example config/common.json \
&& cp config/service.report.json.example config/service.report.json \
&& cp config/facs/grc.config.json.example config/facs/grc.config.json \
&& cp config/facs/grc-slack.config.json.example config/facs/grc-slack.config.json
- name: Install deps
run: npm i
- name: Run tests
id: test-runner
uses: nick-fields/retry@v2
continue-on-error: false
with:
timeout_minutes: 20
retry_wait_seconds: 10
max_attempts: 3
retry_on: any
command: npm test

0 comments on commit 7633001

Please sign in to comment.