diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4385ab2..1d0cc08 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,15 +10,9 @@ jobs: steps: - uses: actions/checkout@v3 - - - uses: actions/setup-go@v3 - with: - go-version: 1.18.x - - - uses: actions/cache@v3 + - uses: actions/setup-go@v4 with: - path: ~/go/pkg/mod - key: go-${{ matrix.os }}-${{ matrix.go }}-${{ hashFiles('**/go.sum') }} + go-version: '1.20' - run: GODEBUG=cgocheck=2 make race @@ -29,29 +23,23 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 - - - uses: actions/setup-go@v3 - with: - go-version: 1.18.x - - uses: actions/cache@v3 with: path: | C:\ProgramData\chocolatey\lib\mingw C:\ProgramData\chocolatey\lib\cmake - key: chocolatey-${{ matrix.os }} + key: + chocolatey-${{ matrix.os }} + - name: Install dependencies run: | choco upgrade mingw -y --no-progress --version 11.2.0.07112021 choco install cmake -y --no-progress --version 3.23.1 - - uses: actions/cache@v3 + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 with: - path: | - ~\AppData\Local\go-build - ~\go\pkg\mod - key: go-${{ matrix.os }}-${{ hashFiles('**/go.sum') }} - restore-keys: go-${{ matrix.os }}- + go-version: '1.20' - - run: make test + - run: go env + - run: go test ./mdbx ./exp/mdbxpool