kopia lustrzana https://github.com/browsh-org/browsh
feat: github action for tests
rodzic
8d321c47a1
commit
4955e243d8
|
@ -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
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [[ "$1" = "kill" ]]; then
|
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
|
if [[ $pids =~ [^0-9] ]] ; then
|
||||||
kill $pids
|
kill $pids
|
||||||
fi
|
fi
|
||||||
|
|
Plik diff jest za duży
Load Diff
|
@ -21,7 +21,7 @@
|
||||||
"prettier": "1.18.2",
|
"prettier": "1.18.2",
|
||||||
"sinon": "^6.3.5",
|
"sinon": "^6.3.5",
|
||||||
"strip-ansi": "^4.0.0",
|
"strip-ansi": "^4.0.0",
|
||||||
"web-ext": "^2.9.3",
|
"web-ext": "^7.1.0",
|
||||||
"webpack": "^4.33.0",
|
"webpack": "^4.33.0",
|
||||||
"webpack-cli": "^3.3.4"
|
"webpack-cli": "^3.3.4"
|
||||||
},
|
},
|
||||||
|
|
Ładowanie…
Reference in New Issue