🌱 Bump golang from 3c4de86
to c2010b9
#80
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: [ main ] | |
pull_request: | |
branches: [ main ] | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check PR title. If it contains SKIP, skip this CI test | |
run: | | |
if [[ title="${{ github.event.pull_request.title }}" ]]; then | |
echo "PR title starts with 'SKIP'" | |
exit 0 | |
else | |
echo "PR title did not start with 'SKIP'" | |
exit 0 | |
fi | |
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 | |
- name: Set up Go | |
uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 | |
with: | |
go-version: 1.17 | |
- name: Build | |
run: CGO_ENABLED=0 go build -trimpath -a -tags netgo -ldflags '-w -extldflags' -o scorecard-webapp | |
- name: Test | |
run: CGO_ENABLED=0 go test -trimpath -a -tags netgo -ldflags '-w -extldflags' -o scorecard-webapp |