ui: update SSH key filter label #142
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, pull_request] | |
jobs: | |
lint: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: Setup Go environment | |
uses: actions/setup-go@v3 | |
with: | |
go-version: "1.20.x" | |
- name: Get dependencies | |
run: sudo apt-get update && sudo apt-get install gcc libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libx11-dev xorg-dev | |
- name: Install staticcheck | |
run: go install honnef.co/go/tools/cmd/staticcheck@latest | |
- name: Install goimports | |
run: go install golang.org/x/tools/cmd/goimports@latest | |
# Checks-out the repository under $GITHUB_WORKSPACE | |
- uses: actions/checkout@v2 | |
# Run linters | |
- name: Run go vet | |
run: go vet ./... | |
- name: Run goimports | |
run: test -z $(find . -name '*.go' -type f | xargs goimports -e -d | tee /dev/stderr) | |
- name: Run staticcheck | |
run: staticcheck lucor.dev/paw/... | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
go-version: ["1.20.x", "1.21.x"] | |
steps: | |
- name: Setup Go environment | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Get dependencies | |
run: sudo apt-get update && sudo apt-get install gcc libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libx11-dev xorg-dev | |
if: ${{ runner.os == 'Linux' }} | |
# Checks-out the repository under $GITHUB_WORKSPACE | |
- uses: actions/checkout@v2 | |
# Run tests | |
- run: go test ./... |