add go list -e flag #33
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: Go | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.19.12 | |
- name: Clang | |
run: | | |
apt search clang | |
# sudo apt-get install -f -y clang llvm | |
# TODO: add different clang versions | |
sudo apt-get install -f -y llvm-11 clang-11 | |
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-11 2000 | |
# view priority | |
sudo update-alternatives --config clang | |
# view version | |
clang --version | |
- name: Download | |
run: | | |
go mod download | |
- name: Lint | |
run: | | |
./scripts/lint.sh | |
- name: Build | |
run: | | |
go build -v | |
- name: Race test | |
run: | | |
go test -run=TestIntegrationScripts/tests/ctype.c -race -v -timeout=30m | |
- name: Coverage | |
run: | | |
go get -u github.com/wadey/gocovmerge | |
go install github.com/ory/go-acc@latest | |
# go get -u github.com/Konstantin8105/cs | |
go get -u golang.org/x/sys/unix | |
TRAVIS=true ./scripts/test.sh | |
# - name: Run Tests | |
# run: | | |
# echo "" > coverage.txt | |
# go test -coverprofile=1.txt -covermode=atomic . | |
# cat 1.txt > coverage.txt | |
# go test -coverprofile=1.txt -covermode=atomic github.com/Konstantin8105/c4go/ast | |
# cat 1.txt > coverage.txt | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true # optional (default = false) | |
file: coverage.txt |