Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
#58 CI strykey
  • Loading branch information
enriquezrene committed Apr 9, 2020
commit 892c05548aaef76d0b5c481cd924a35fc6f5379d
48 changes: 48 additions & 0 deletions .github/workflows/CI-mutation-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Running mutation tests

on:
pull_request:
types: [opened, edited, reopened, synchronize]
branches:
- stryker

jobs:
configuring-stryker:
name: Running stryker
runs-on: ubuntu-latest
timeout-minutes: 360
steps:
- name: Clone and checkout branch
uses: actions/checkout@master

- name: Set up Node.js version
uses: actions/setup-node@v1
with:
node-version: '12.x'

- name: Install dependencies
run: npm install

- name: Inject Secrets
shell: python
env:
SCOPES: ${{ secrets.scopes }}
CLIENT_ID: ${{ secrets.client_id }}
AUTHORITY: ${{ secrets.authority }}
BASE_PATH: "src/environments/"
run: |
import os
base_path = os.environ.get('BASE_PATH', 'src/environments/')
with open(base_path + "keys.ts", "w") as fileWithKeys:
fileWithKeys.write('export const AUTHORITY = ') + str(os.environ['SCOPES']).split(",") + ';';
fileWithKeys.write('\nexport const CLIENT_ID = ' + os.environ['CLIENT_ID']) + ';';
fileWithKeys.write('\nexport const SCOPES = ' + os.environ['AUTHORITY']) + ';';

- name: Run the test
run: npm run ci-test --if-present

- name: Installing stryker-cli
run: npm install -g stryker-cli

- name: Running stryker
run: stryker run