initial commit #1
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: CI - test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: .devcontainer | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Start containers | |
run: docker-compose up -d | |
- name: Change permissions | |
run: docker-compose exec -T app chown -R node:node /workspaces/stryker-helpers | |
- name: Install dependencies | |
run: docker-compose exec -T --workdir /workspaces/stryker-helpers --user node app npm ci | |
- name: Build library | |
run: docker-compose exec -T --workdir /workspaces/stryker-helpers --user node app npm run build | |
- name: Test | |
run: docker-compose exec -T --workdir /workspaces/stryker-helpers --user node app npm test |