Files
metrics/.github/workflows/workflow.yml
Simon Lecoq b4d0e85148 Mocked tests and remove ncc compilation (#32)
* Mocked tests and remove ncc compilation
* Update workflow.yml
* Update Dockerfile
2020-12-30 00:49:01 +01:00

33 lines
937 B
YAML

name: Build, tests and analyze
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Build lowlighter/metrics:${{ github.head_ref || github.base_ref }}
run: docker build -t lowlighter/metrics:${{ github.head_ref || github.base_ref }} .
- name: Run tests
run: docker run --workdir=/metrics --entrypoint="" lowlighter/metrics:${{ github.head_ref || github.base_ref }} npm test
analyze:
runs-on: ubuntu-latest
needs: [ build ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup CodeQL
uses: github/codeql-action/init@v1
with:
languages: javascript
config-file: ./.github/config/codeql.yml
- name: Analyze code
uses: github/codeql-action/analyze@v1