v4: Support Counter-Strike 2 #756
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
on: [push, pull_request] | |
name: CI | |
jobs: | |
ci: | |
strategy: | |
matrix: | |
go-version: [1.18.x] | |
runs-on: ubuntu-latest | |
env: | |
REVIEWDOG_REPORTER: github-check | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install Reviewdog | |
uses: reviewdog/action-setup@v1 | |
with: | |
reviewdog_version: v0.11.0 | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Download Go Deps | |
run: go mod download | |
- name: Install Tools | |
run: | | |
# install 7zip for decompressing test demos | |
sudo apt-get install -y p7zip-full | |
# Install interface generator | |
go install github.com/vburenin/[email protected] | |
# Fetch refs for linter | |
git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/* | |
git fetch | |
# Install golangci-lint | |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.52.2 | |
- name: Build | |
run: scripts/build.sh | |
- name: Check Generated Code | |
run: scripts/check-interfaces-generated.sh | |
- name: Lint Changed Code | |
run: scripts/lint-changes.sh | |
- name: Race Tests | |
run: scripts/race-tests.sh | |
# Note: We run ALL tests again to get full coverage | |
# Race tests are too slow and skip the regression set | |
- name: All Tests + Coverage | |
run: | | |
scripts/coverage.sh | |
bash <(curl -s https://codecov.io/bash) |