Skip to content

Bump actions/setup-go from 5.4.0 to 5.5.0 #202

Bump actions/setup-go from 5.4.0 to 5.5.0

Bump actions/setup-go from 5.4.0 to 5.5.0 #202

Workflow file for this run

name: Go 🔷🐀🔷 Tests 🦂
on:
push:
branches-ignore:
- 'main'
paths:
- 'go/**'
- '!go/**.md'
- '!go/.vscode/**'
- '.github/workflows/go-*'
pull_request:
branches:
- 'main'
paths:
- 'go/**'
- '!go/**.md'
- '!go/.vscode/**'
- '.github/workflows/go-*'
schedule: # 9AM on the 15th
- cron: 0 22 14 1,2,3,10,11,12 * # AEDT Months
- cron: 0 23 14 4,5,6,7,8,9 * # AEST Months
workflow_call:
permissions: {}
defaults:
run:
shell: bash
working-directory: go
env:
development_go_version: 1.18
jobs:
quick-test:
name: Go 🔷🐀🔷 Quick Test 🦂
if: ${{ github.event_name == 'push' && !(github.event.ref == 'refs/heads/main') }}
runs-on: ubuntu-latest
steps:
- name: 🏁 Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 🔷🐀🔷 Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: ${{ env.development_go_version }}
- name: 🦂 Test
run: make test
full-test:
name: Go 🔷🐀🔷 Full Test 🦂
if: >-
${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' ||
(github.event_name == 'push' && github.event.ref == 'refs/heads/main') }}
runs-on: '${{ matrix.os }}'
strategy:
fail-fast: false
matrix:
go-version: ['1.13', '1.14', '1.15', '1.16', '1.17', '1.18']
os: [ubuntu-latest, macOS-latest, windows-latest]
exclude:
- go-version: '1.13'
os: macOS-latest
- go-version: '1.14'
os: macOS-latest
- go-version: '1.15'
os: macOS-latest
steps:
- name: 🏁 Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 🔷🐀🔷 Set up Go ${{ matrix.version }}
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: ${{ matrix.go-version }}
- name: 🦂 Test
run: make test
codeql:
name: Go 🔷🐀🔷 CodeQL 🛡👨‍💻🛡
if: >-
${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' ||
(github.event_name == 'push' && github.event.ref == 'refs/heads/main') }}
permissions:
actions: read
contents: read
security-events: write
uses: ./.github/workflows/github-codeql.yaml
with:
language: 'go'
format:
name: Go 🔷🐀🔷 Format 🚱➡🚰
runs-on: ubuntu-latest
steps:
- name: 🏁 Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 🔷🐀🔷 Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: ${{ env.development_go_version }}
- name: 🚱➡🚰 Format
run: make format
# Docs step is optional depending on language
docs:
name: Go 🔷🐀🔷 Docs 📄 Quick Test 🦂
runs-on: ubuntu-latest
steps:
- name: 🏁 Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 🔷🐀🔷 Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: '1.13'
- name: 📄 Docs
run: |
make godoc
make docs
git config --local user.email "actions@github.com"
git config --local user.name "Github Actions"
export SHORTSHA=$(git rev-parse --short HEAD)
git fetch origin gh-pages-go:gh-pages-go
git symbolic-ref HEAD refs/heads/gh-pages-go
cd .. && mv go/docs ../MERGE_TARGET
git rm -rf . && git clean -fxd && git reset
shopt -s dotglob && mkdir go && mv ../MERGE_TARGET/* go/ && rm go/main.go && rm go/.gitignore
git add .
git commit -m "Build based on $SHORTSHA" --allow-empty