Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/badge-sqlite-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@ jobs:
create-sqlite-version-badge:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v7

- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v7
with:
go-version: 1.18

- name: Check out code into the Go module directory
uses: actions/checkout@v4
cache: false

- name: go mod package cache
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-${{ hashFiles('go.mod') }}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ jobs:
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v7
with:
go-version: ${{ matrix.go }}
check-latest: true
- run: go version

- uses: actions/checkout@v4
- name: Test
run: go test -v -cover .
23 changes: 12 additions & 11 deletions .github/workflows/gorm-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,27 @@ jobs:
runs-on: ${{ matrix.platform }}

steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
check-latest: true
- run: go version

- name: Check out this repo
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
path: sqlite

- name: Check out GORM repo
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
repository: go-gorm/gorm
path: gorm

- name: Set up Go
uses: actions/setup-go@v7
with:
go-version: ${{ matrix.go }}
check-latest: true
cache: false
- run: go version

- name: go mod package cache
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('**/go.mod') }}
Expand Down Expand Up @@ -66,7 +67,7 @@ jobs:

- name: save tests results
if: ${{ always() }}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: ${{ runner.os }}-${{ matrix.go }}-tests.out
path: ./gorm/tests/${{ runner.os }}-${{ matrix.go }}-tests.out