remove special char from filename; restore position of import #79
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, pull_request] | |
name: Test | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: WillAbides/setup-go-faster@main | |
with: | |
go-version: 1.21.x | |
- uses: actions/checkout@v4 | |
with: | |
path: './src/github.com/kevinburke/ssh_config' | |
# staticcheck needs this for GOPATH | |
- run: | | |
echo "GO111MODULE=off" >> $GITHUB_ENV | |
echo "GOPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV | |
echo "PATH=$GITHUB_WORKSPACE/bin:$PATH" >> $GITHUB_ENV | |
- name: Run tests | |
run: make lint | |
working-directory: './src/github.com/kevinburke/ssh_config' | |
test: | |
strategy: | |
matrix: | |
go-version: [1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: WillAbides/setup-go-faster@main | |
with: | |
go-version: ${{ matrix.go-version }} | |
- uses: actions/checkout@v4 | |
with: | |
path: './src/github.com/kevinburke/ssh_config' | |
- run: | | |
echo "GO111MODULE=off" >> $GITHUB_ENV | |
echo "GOPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV | |
echo "PATH=$GITHUB_WORKSPACE/bin:$PATH" >> $GITHUB_ENV | |
- name: Run tests with race detector on | |
run: make race-test | |
working-directory: './src/github.com/kevinburke/ssh_config' |