Support x.com for tweets #1581
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: Lint | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
go: ["1.19", "1.20"] | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: sudo apt update && sudo apt -y install build-essential libvips-dev | |
# This will install the staticcheck version as described in the go.mod file | |
- name: Install linter | |
run: go install honnef.co/go/tools/cmd/staticcheck | |
- name: Lint | |
run: staticcheck ./... |