-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
74 changed files
with
3,103 additions
and
9,125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
clienta | ||
connectiona | ||
sover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Fix typos nightly | ||
|
||
on: | ||
schedule: | ||
- cron: "0 12 * * *" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run codespell | ||
continue-on-error: true | ||
run: | | ||
sudo apt-get install codespell -y | ||
codespell -w --skip="*.pb.go,*.pb.gw.go,*.json,*.git,*.js" --ignore-words=.github/.codespellignore | ||
- uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.PRBOT_PAT }} | ||
commit-message: "chore: spelling errors fixes" | ||
title: "chore: fix spelling errors" | ||
branch: "bot/fix-typos" | ||
delete-branch: true | ||
body: | | ||
This PR fixes typos in the codebase. | ||
Please review it, and merge if everything is fine. | ||
If there are proto changes, run `make proto-gen` and commit the changes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,7 @@ jobs: | |
name: "${{ github.sha }}-integration-coverage" | ||
path: ./integration-profile.out | ||
|
||
test-difference: | ||
test-mbt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -100,6 +100,11 @@ jobs: | |
check-latest: true | ||
cache: true | ||
cache-dependency-path: go.sum | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ">= 18" | ||
check-latest: true | ||
- run: npm i @informalsystems/quint -g | ||
- uses: technote-space/[email protected] | ||
id: git_diff | ||
with: | ||
|
@@ -111,19 +116,26 @@ jobs: | |
**/go.sum | ||
**/Makefile | ||
Makefile | ||
- name: difference tests | ||
- name: mbt tests | ||
if: env.GIT_DIFF | ||
run: | | ||
make test-difference-cov | ||
make test-mbt-cov | ||
- uses: actions/upload-artifact@v3 | ||
if: env.GIT_DIFF | ||
with: | ||
name: "${{ github.sha }}-difference-coverage" | ||
path: ./difference-profile.out | ||
|
||
name: "${{ github.sha }}-mbt-coverage" | ||
path: ./mbt-profile.out | ||
- name: Archive MBT traces | ||
uses: actions/upload-artifact@v3 | ||
if: ${{ success() || failure() }} # to upload the traces only when the test failed | ||
with: | ||
name: mbt-traces | ||
path: tests/mbt/driver/traces | ||
retention-days: 6 # to not clog our cloud storage too much, we retain only for a few days | ||
|
||
repo-analysis: | ||
runs-on: ubuntu-latest | ||
needs: [tests, test-integration, test-difference] | ||
needs: [tests, test-integration, test-mbt] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: technote-space/[email protected] | ||
|
@@ -135,18 +147,18 @@ jobs: | |
go.sum | ||
**/go.mod | ||
**/go.sum | ||
- uses: actions/download-artifact@v3 | ||
- uses: actions/download-artifact@v4 | ||
if: env.GIT_DIFF | ||
with: | ||
name: "${{ github.sha }}-coverage" | ||
- uses: actions/download-artifact@v3 | ||
- uses: actions/download-artifact@v4 | ||
if: env.GIT_DIFF | ||
with: | ||
name: "${{ github.sha }}-integration-coverage" | ||
- uses: actions/download-artifact@v3 | ||
- uses: actions/download-artifact@v4 | ||
if: env.GIT_DIFF | ||
with: | ||
name: "${{ github.sha }}-difference-coverage" | ||
name: "${{ github.sha }}-mbt-coverage" | ||
continue-on-error: true | ||
- name: sonarcloud | ||
if: ${{ env.GIT_DIFF && !github.event.pull_request.draft }} | ||
|
@@ -181,7 +193,9 @@ jobs: | |
**/Makefile | ||
Makefile | ||
- name: e2e tests | ||
run: make test-e2e-short | ||
if: env.GIT_DIFF | ||
run: | | ||
make test-e2e-short | ||
test-cometmock: | ||
runs-on: ubuntu-latest | ||
|
@@ -209,7 +223,9 @@ jobs: | |
**/Makefile | ||
Makefile | ||
- name: cometmock tests | ||
run: make test-e2e-short-cometmock | ||
if: env.GIT_DIFF | ||
run: | | ||
make test-e2e-short-cometmock | ||
test-trace: | ||
runs-on: ubuntu-latest | ||
|
@@ -237,4 +253,28 @@ jobs: | |
**/Makefile | ||
Makefile | ||
- name: trace-e2e tests | ||
run: make test-trace | ||
if: env.GIT_DIFF | ||
run: | | ||
make test-trace | ||
model-analysis: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
- name: checkout LFS objects | ||
run: git lfs checkout | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ">= 18" | ||
check-latest: true | ||
- run: npm i @informalsystems/quint -g | ||
- uses: technote-space/[email protected] | ||
id: git_diff | ||
with: | ||
PATTERNS: | | ||
tests/mbt/model/**.qnt | ||
- name: verify the Quint model | ||
if: env.GIT_DIFF | ||
run: | | ||
make verify-models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.