From c693e7fff9317f4b8c22d5ab0ae7c2db4ca0ce17 Mon Sep 17 00:00:00 2001 From: Tugay Emin <6022575+tgntr@users.noreply.github.com> Date: Wed, 4 Dec 2024 17:23:24 +0200 Subject: [PATCH] ci: run sims during test workflow (#298) * ci: run sims during test workflow * ci: update go version in workflows --------- Co-authored-by: Jacob Gadikian --- .github/workflows/build.yml | 19 +++++++++---------- .github/workflows/golangci.yml | 2 +- .github/workflows/test.yml | 28 ++++++++++++++++++---------- 3 files changed, 28 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bd4149d2..06fe32f6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 ./... diff --git a/.github/workflows/golangci.yml b/.github/workflows/golangci.yml index 5458ed18..0d823490 100644 --- a/.github/workflows/golangci.yml +++ b/.github/workflows/golangci.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 221dff1e..55574fae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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