Bump actions/checkout from 3 to 4 #19
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: ['1.16'] | |
steps: | |
- name: Setup | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Prerequisites | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install libvlc-dev vlc-plugin-base vlc-plugin-video-output vlc-plugin-access-extra | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Dependencies | |
working-directory: ./v3 | |
run: | | |
go version | |
go get -v -t -d ./... | |
go install golang.org/x/lint/golint@latest | |
- name: Lint | |
working-directory: ./v3 | |
run: golint -set_exit_status=1 ./... | |
- name: Vet | |
working-directory: ./v3 | |
run: go vet -unsafeptr=false ./... | |
- name: Test | |
working-directory: ./v3 | |
run: go test -v -coverprofile=coverage.txt -covermode=atomic ./... | |
- name: Coverage | |
uses: codecov/codecov-action@v3 |