From d245df360c1b1fe79f7720eb1a51142e31b19f26 Mon Sep 17 00:00:00 2001 From: Emiliano Ciavatta Date: Wed, 28 Jul 2021 10:29:20 +0200 Subject: Update test workflow --- .github/workflows/test.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f762ce2..dfbdef3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Build and Test +name: Test on: [push, pull_request] @@ -18,7 +18,7 @@ jobs: with: go-version: 1.16 - name: Install dependencies - run: apt-get install pkg-config libpcap-dev libhyperscan-dev + run: sudo apt-get install pkg-config libpcap-dev libhyperscan-dev - name: Test backend run: go test -v -race -coverprofile=coverage.txt -covermode=atomic - name: Upload coverage @@ -26,14 +26,15 @@ jobs: build_frontend: name: Build frontend runs-on: ubuntu-latest + defaults: + run: + working-directory: frontend steps: - uses: actions/checkout@v2 - name: Set up Node.js uses: actions/setup-node@v2 with: node-version: 14.x - cache: 'yarn' - - run: cd frontend - name: Install dependencies run: yarn install - name: Build frontend -- cgit v1.2.3-70-g09d2