aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorEmiliano Ciavatta2021-07-28 08:29:20 +0000
committerEmiliano Ciavatta2021-07-28 08:30:58 +0000
commitd245df360c1b1fe79f7720eb1a51142e31b19f26 (patch)
tree88cb37b279eb79de4fac4bd5094a631a2b481e59 /.github/workflows
parent520901864877b7be3115e4fa0ee6544c3de2476c (diff)
Update test workflow
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml9
1 files 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