Skip to content

Commit

Permalink
ci: update ubuntu version
Browse files Browse the repository at this point in the history
  • Loading branch information
ifiokjr committed Sep 13, 2024
1 parent 04c3eed commit 571cb5b
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 16 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
jobs:
lint:
timeout-minutes: 25
runs-on: "ubuntu-latest"
runs-on: ubuntu-24.04
steps:
- name: checkout repository
uses: actions/checkout@v4
Expand All @@ -34,7 +34,7 @@ jobs:

docs:
timeout-minutes: 25
runs-on: "ubuntu-latest"
runs-on: ubuntu-24.04
steps:
- name: checkout repository
uses: actions/checkout@v4
Expand All @@ -51,7 +51,7 @@ jobs:

test:
timeout-minutes: 25
runs-on: "ubuntu-latest"
runs-on: ubuntu-24.04
strategy:
matrix:
version: ["1.75.0", stable, nightly]
Expand All @@ -67,13 +67,25 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
nix-cache: /tmp/nixcache

- name: test
run: test:all
- name: test `wallet_standard_wallets` with `ssr`
run: test:wallet_standard_wallets:ssr
shell: bash

- name: test `wallet_standard_wallets` with `docs`
run: test:wallet_standard_wallets:docs
shell: bash

- name: test `wasm_client_solana` with `ssr`
run: test:wasm_client_solana:ssr
shell: bash

- name: test `wasm_client_solana` with `docs`
run: test:wasm_client_solana:docs
shell: bash

coverage:
timeout-minutes: 25
runs-on: "ubuntu-latest"
runs-on: ubuntu-24.04
steps:
- name: checkout repository
uses: actions/checkout@v4
Expand All @@ -97,7 +109,7 @@ jobs:

build:
timeout-minutes: 25
runs-on: "ubuntu-latest"
runs-on: ubuntu-24.04
strategy:
matrix:
version: ["1.75.0", stable, nightly]
Expand Down
39 changes: 30 additions & 9 deletions devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@
'';
description = "The `release-plz` executable";
};
scripts.wasm-pack = {
exec = ''
set -e
cargo bin wasm-pack $@
'';
description = "The `wasm-pack` executable for bundling wasm for the browser.";
};
scripts."install:all" = {
exec = ''
set -e
Expand Down Expand Up @@ -117,20 +110,48 @@
description = "Run all tests across the crates";
};
scripts."test:wallet_standard_wallets" = {
exec = ''
set -e
test:wallet_standard_wallets:ssr
test:wallet_standard_wallets:docs
'';
description = "Run tests for the `wallet_standard_wallets` crate.";
};
scripts."test:wallet_standard_wallets:ssr" = {
exec = ''
set -e
cargo nextest run --package wallet_standard_wallets --features="ssr"
'';
description = "Run tests for the `wallet_standard_wallets` crate with the `ssr` feature.";
};
scripts."test:wallet_standard_wallets:docs" = {
exec = ''
set -e
cargo test --package wallet_standard_wallets --doc --features="ssr"
'';
description = "Run tests for the `wallet_standard_wallets` crate.";
description = "Run doctests for the `wallet_standard_wallets` crate with the `ssr` feature.";
};
scripts."test:wasm_client_solana" = {
exec = ''
set -e
test:wasm_client_solana:ssr
test:wasm_client_solana:docs
'';
description = "Run tests for the `wasm_client_solana` crate.";
};
scripts."test:wasm_client_solana:ssr" = {
exec = ''
set -e
cargo nextest run --package wasm_client_solana --features="ssr"
'';
description = "Run tests for the `wasm_client_solana` crate with the `ssr` feature.";
};
scripts."test:wasm_client_solana:docs" = {
exec = ''
set -e
cargo test --package wasm_client_solana --doc --features="ssr"
'';
description = "Run tests for the `wasm_client_solana` crate.";
description = "Run doctests for the `wasm_client_solana` crate with the `ssr` feature.";
};
scripts."coverage:all" = {
exec = ''
Expand Down
37 changes: 37 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,43 @@

## Description

See the individual crates for more information.

### scripts

- `anchor`: The `anchor` executable
- `build:all`: Build all crates with all features activated.
- `build:docs`: Build documentation site.
- `copy:js`: Copy the JS needed for the `wallet_standard_browser`.
- `coverage:all`: Run coverage across the crates
- `coverage:wallet_standard_wallets`: Run coverage for the `wallet_standard_wallets` crate.
- `coverage:wasm_client_solana`: Run coverage for the `wasm_client_solana` crate.
- `fix:all`: Fix all autofixable problems.
- `fix:clippy`: Fix clippy lints for rust.
- `fix:es`: Fix lints for JS / TS.
- `fix:format`: Format files with dprint.
- `generate:keypair`: Generate a local solana keypair. Must provide a name.
- `install:all`: Install all packages.
- `install:cargo:bin`: Install cargo binaries locally.
- `install:solana`: Install the version of solana or use one from the cache.
- `lint:all`: Run all checks.
- `lint:clippy`: Check that all rust lints are passing.
- `lint:es`: Check lints for all JS / TS files.
- `lint:format`: Check that all files are formatted.
- release-`plz`: The `release-plz` executable
- `setup:ci`: Setup devenv for GitHub Actions
- `setup:docker`: Setup devenv shell for docker.
- `setup:helix`: Setup for the helix editor.
- `setup:vscode`: Setup the environment for vscode.
- `test:all`: Run all tests across the crates
- `test:wallet_standard_wallets`: Run tests for the `wallet_standard_wallets` crate.
- `test:wallet_standard_wallets:docs`: Run doctests for the `wallet_standard_wallets` crate with the `ssr` feature.
- `test:wallet_standard_wallets:ssr`: Run tests for the `wallet_standard_wallets` crate with the `ssr` feature.
- `test:wasm_client_solana`: Run tests for the `wasm_client_solana` crate.
- `test:wasm_client_solana:docs`: Run doctests for the `wasm_client_solana` crate with the `ssr` feature.
- `test:wasm_client_solana:ssr`: Run tests for the `wasm_client_solana` crate with the `ssr` feature.
- `update:deps`: Update dependencies.

## Contributing

[`devenv`](https://devenv.sh/) is used to provide a reproducible development environment for this project. Follow the [getting started instructions](https://devenv.sh/getting-started/).
Expand Down

0 comments on commit 571cb5b

Please sign in to comment.