unix: add icons handling #32
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: | |
branches: [ main ] | |
pull_request: | |
branches: [ '**' ] | |
# Set default permissions as read only. | |
permissions: read-all | |
name: Go | |
jobs: | |
go-test: | |
strategy: | |
matrix: | |
go-version: [1.18.x, 1.21.x, 1.22.x] | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Test with -race | |
run: go test -race -count=5 ./... | |
code-check: | |
strategy: | |
matrix: | |
go-version: [1.22.x] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: staticcheck.io | |
uses: dominikh/[email protected] | |
with: | |
version: "2023.1.7" | |
install-go: false | |
cache-key: ${{ matrix.go-version }} |