Merge pull request #332 from Opetushallitus/snyk-upgrade-6ff71b12f26d… #552
Workflow file for this run
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: Run tests | |
on: | |
push: | |
branches-ignore: | |
- "master" | |
workflow_dispatch: | |
env: | |
DOCKER_BUILDKIT: 1 | |
jobs: | |
oma_opintopolku_loki_frontend: | |
name: oma-opintopolku-loki frontend | |
runs-on: ubuntu-20.04 | |
env: | |
TEST_PORT: 3030 | |
TZ: Europe/Helsinki | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node 16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- name: Run tests | |
run: | | |
cd frontend | |
npm install && npm run test | |
npm run unit | |
npm run lint | |
oma_opintopolku_loki_parser: | |
name: oma-opintopolku-loki log parser | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Java 8 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '8' | |
architecture: 'x64' | |
distribution: 'zulu' | |
- name: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Run tests | |
run: | | |
cd parser | |
make test | |
make scalastyle |