Skip to content

Commit 892c055

Browse files
committed
#58 CI strykey
1 parent d26c5d5 commit 892c055

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Running mutation tests
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, reopened, synchronize]
6+
branches:
7+
- stryker
8+
9+
jobs:
10+
configuring-stryker:
11+
name: Running stryker
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 360
14+
steps:
15+
- name: Clone and checkout branch
16+
uses: actions/checkout@master
17+
18+
- name: Set up Node.js version
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: '12.x'
22+
23+
- name: Install dependencies
24+
run: npm install
25+
26+
- name: Inject Secrets
27+
shell: python
28+
env:
29+
SCOPES: ${{ secrets.scopes }}
30+
CLIENT_ID: ${{ secrets.client_id }}
31+
AUTHORITY: ${{ secrets.authority }}
32+
BASE_PATH: "src/environments/"
33+
run: |
34+
import os
35+
base_path = os.environ.get('BASE_PATH', 'src/environments/')
36+
with open(base_path + "keys.ts", "w") as fileWithKeys:
37+
fileWithKeys.write('export const AUTHORITY = ') + str(os.environ['SCOPES']).split(",") + ';';
38+
fileWithKeys.write('\nexport const CLIENT_ID = ' + os.environ['CLIENT_ID']) + ';';
39+
fileWithKeys.write('\nexport const SCOPES = ' + os.environ['AUTHORITY']) + ';';
40+
41+
- name: Run the test
42+
run: npm run ci-test --if-present
43+
44+
- name: Installing stryker-cli
45+
run: npm install -g stryker-cli
46+
47+
- name: Running stryker
48+
run: stryker run

0 commit comments

Comments
 (0)