-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add go tests * add js tests * fix how license is shown * add rust flow * fix syntax * cd into rust * test * test++ * test++ * test++ * migrate * add rust linting * fix concurrency * formatting * lint pr * rename main to master * fix test * fix clippy issues Co-authored-by: Marko Baricevic <[email protected]>
- Loading branch information
1 parent
4a951ea
commit 82313ed
Showing
6 changed files
with
145 additions
and
158 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,22 @@ | ||
name: "Lint PR" | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
main: | ||
permissions: | ||
pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs | ||
statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,38 @@ | ||
name: Lint | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: ci-${{ github.ref }}-linting | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
rust: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- name: Check formatting of workspace | ||
working-directory: ./rust | ||
run: cargo fmt -- --check | ||
|
||
- name: Clippy linting on workspace (host-functions + std) | ||
working-directory: ./rust | ||
run: cargo clippy --tests -- -D warnings | ||
|
||
- name: Clippy linting on workspace (no-std) | ||
working-directory: ./rust | ||
run: cargo clippy --tests --no-default-features -- -D warnings | ||
|
||
- name: Clippy linting on workspace (host functions only) | ||
working-directory: ./rust | ||
run: cargo clippy --tests --no-default-features --features host-functions -- -D warnings | ||
|
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,69 @@ | ||
name: Tests | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: ci-${{ github.ref }}-tests | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
go: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.2 | ||
- name: test | ||
working-directory: ./go | ||
run: make test | ||
|
||
ts: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: test | ||
working-directory: ./js | ||
run: yarn && yarn test | ||
|
||
rust: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- name: Check all target in std | ||
working-directory: ./rust | ||
run: cargo check --all | ||
|
||
- name: Check all target in no_std | ||
working-directory: ./rust | ||
run: cargo check --no-default-features --all | ||
|
||
- name: Build all targets in std | ||
working-directory: ./rust | ||
run: cargo build --all --all-targets | ||
|
||
- name: Build all targets in no_std | ||
working-directory: ./rust | ||
run: cargo build --all --no-default-features | ||
|
||
- name: Run all tests with no-std | ||
working-directory: ./rust | ||
run: cargo test --all --no-default-features | ||
|
||
- name: Run all tests with std | ||
working-directory: ./rust | ||
run: cargo test --all | ||
|
||
- name: check no_std compatibility | ||
run: cd rust/no-std-check/; make setup; make all | ||
|
||
|
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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
Confio/ICS23 | ||
License: Apache2.0 | ||
|
||
Apache License | ||
Version 2.0, January 2004 | ||
http://www.apache.org/licenses/ | ||
|
Oops, something went wrong.