Skip to content

Commit

Permalink
ci: run sims during test workflow (#298)
Browse files Browse the repository at this point in the history
* ci: run sims during test workflow

* ci: update go version in workflows

---------

Co-authored-by: Jacob Gadikian <[email protected]>
  • Loading branch information
tgntr and faddat authored Dec 4, 2024
1 parent ed7d7fe commit c693e7f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 21 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@ name: build

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23"

- name: Build
run: go build -v ./...
- name: Build
run: go build -v ./...
2 changes: 1 addition & 1 deletion .github/workflows/golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: "1.22"
go-version: "1.23"
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
Expand Down
28 changes: 18 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,29 @@ name: test

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:

run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23"

- name: Test
run: go test -v ./...

- name: Test Simulation Deterministic
run: make test-sim-deterministic

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: Test Simulation Import/Export
run: make test-sim-import-export

- name: Test
run: go test -v ./...
- name: Test Simulation Multi Seed Short
run: make test-sim-multi-seed-short

0 comments on commit c693e7f

Please sign in to comment.