aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
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