-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 927 Bytes
/
test.yaml
File metadata and controls
42 lines (36 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: 'build-test'
on: # rebuild any PRs and main branch changes
workflow_dispatch:
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- name: Checkout Source Files
uses: actions/checkout@v2
- name: Build and Test
run: |
yarn install
yarn all
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
path-to-lcov: './reports/coverage/lcov.info'
- name: Test Disable
uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}
workflow_id: test-workflow.yaml
action: disable
- name: Sleep
run: sleep 10
- name: Test Enable
uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}
workflow_id: test-workflow.yaml
action: enable