Skip to content

Commit

Permalink
feat: github action for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tormodatt authored and tombh committed Jul 15, 2022
1 parent 8d321c4 commit 4955e24
Show file tree
Hide file tree
Showing 4 changed files with 21,264 additions and 8,644 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build browsh
on: [push]
jobs:
build:
runs-on: ubuntu-latest
env:
GOPATH: ${{ github.workspace }}
GOBIN: ${{ github.workspace }}/bin
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
working-directory: ./webext
- run: npm test
working-directory: ./webext
- uses: browser-actions/setup-firefox@latest
- run: firefox --version
- run: npm install
working-directory: ./webext
- run: npx webpack
working-directory: ./webext
- run: go test -v ./...
working-directory: ./interfacer
2 changes: 1 addition & 1 deletion webext/contrib/firefoxheadless.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

if [[ "$1" = "kill" ]]; then
pids=$(ps aux|grep headless|grep 'profile /tmp'| tr -s ' ' | cut -d ' ' -f2)
pids=$(ps aux|grep headless|grep 'profile '| tr -s ' ' | cut -d ' ' -f2)
if [[ $pids =~ [^0-9] ]] ; then
kill $pids
fi
Expand Down
Loading

0 comments on commit 4955e24

Please sign in to comment.