Fixed nil pointer exception when cancelling a context with chromedp.Cancel() #461
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Test | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.16.x, oldstable, stable] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install Packages | |
run: | | |
sudo apt-get -qq update | |
sudo apt-get install -y build-essential | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Test Chrome | |
run: go test -v ./... | |
- name: Test headless-shell | |
run: ./contrib/docker-test.sh |