diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d9ebf18..be101bf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,37 +16,16 @@ on: jobs: test: - strategy: - matrix: - go-version: [1.23.x] - os: [ubuntu-latest] - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest steps: - - name: Install Go - uses: actions/setup-go@v4 - with: - go-version: ${{ matrix.go-version }} - - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - # cache go modules - - uses: actions/cache@v3 + - name: Install Go + uses: actions/setup-go@v5 with: - # In order: - # * Module download cache - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - %LocalAppData%\go-build - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- + go-version-file: go.mod - name: Downloads the dependencies run: make download @@ -55,4 +34,4 @@ jobs: run: make lint - name: Runs all tests - run: make test + run: make test \ No newline at end of file