Skip to content

🌱 Bump actions/setup-go from 2.2.0 to 5.0.0 #66

🌱 Bump actions/setup-go from 2.2.0 to 5.0.0

🌱 Bump actions/setup-go from 2.2.0 to 5.0.0 #66

Workflow file for this run

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@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
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