pdqhash-go

git clone git://archive.git.mtrnord.blog/MTRNord/pdqhash-go.git
Log | Files | Refs | LICENSE

ci.yaml (888B)


      1 name: "CI"
      2 on: ["push", "pull_request"]
      3 
      4 jobs:
      5   ci:
      6     name: "Run CI"
      7     strategy:
      8       fail-fast: false
      9       matrix:
     10         os: ["ubuntu-latest", "macOS-latest"]
     11         go: ["1.22.x"]
     12     runs-on: ${{ matrix.os }}
     13     steps:
     14     - uses: actions/checkout@v4
     15       with:
     16         fetch-depth: 1
     17     - uses: WillAbides/setup-go-faster@v1.14.0
     18       with:
     19         go-version: ${{ matrix.go }}
     20     - run: sudo apt-get install -y libvips-dev
     21       if: matrix.os == 'ubuntu-latest'
     22     - run: brew install vips
     23       if: matrix.os == 'macOS-latest'
     24     - run: go test ./... -race -covermode=atomic -coverprofile=coverage.out -timeout 0
     25     - run: "go vet ./..."
     26     - uses: dominikh/staticcheck-action@v1.2.0
     27       with:
     28         install-go: false
     29         cache-key: ${{ matrix.go }}
     30     - name: Upload coverage reports to Codecov with GitHub Action
     31       uses: codecov/codecov-action@v3
     32