File: ci.yml

package info (click to toggle)
golang-github-dimonomid-ssh-config 0.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 248 kB
  • sloc: makefile: 25
file content (42 lines) | stat: -rw-r--r-- 1,321 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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/iamFrancescoFerro/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/iamFrancescoFerro/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/iamFrancescoFerro/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/iamFrancescoFerro/ssh_config'