Repairing E2E tests #375
Workflow file for this run
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
on: | |
# Every pull request | |
pull_request: | |
push: | |
branches: | |
- main | |
name: build | |
jobs: | |
tests: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
fail-fast: false | |
matrix: | |
operating-system: [ubuntu-latest] | |
# macos is burning my free minutes way too fast | |
#operating-system: [ubuntu-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: install npm dependencies | |
run: cd ./solarkraft && npm ci | |
- name: compile solarkraft | |
run: cd ./solarkraft && npm run compile | |
- name: unit tests | |
run: cd ./solarkraft && npm run test | |
- name: integration tests | |
run: cd ./solarkraft && npm run integration | |
housekeeping: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: install npm dependencies | |
run: cd ./solarkraft && npm ci | |
- name: eslint | |
run: cd ./solarkraft && npm run lint | |
- name: check license | |
run: cd ./solarkraft && (npm run license | grep -v updated) || echo "fix with 'npm run license'" | |
- name: check formatting | |
run: cd ./solarkraft && (npx prettier --config .prettierrc --check src/**/*.ts test/**/*.ts) || echo "fix with 'npm run format'" | |
contracts-unit-tests: | |
name: contracts-unit-tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
# see: https://github.com/stellar/soroban-examples/blob/main/.github/workflows/rust.yml | |
- uses: stellar/actions/rust-cache@main | |
# pin the rust version: https://github.com/stellar/rs-soroban-sdk/pull/1353 | |
- run: | | |
rustup default 1.81.0 | |
rustup update | |
- run: cargo version | |
- uses: stellar/stellar-cli@main | |
with: | |
version: 22.0.0 | |
- run: stellar --version | |
- name: build | |
run: cd ContractExamples && cargo build --verbose --workspace --exclude "soroban-timelock-contract" --exclude "soroban-token-contract" | |
- name: unit tests | |
run: cd ContractExamples && cargo test --verbose --workspace --exclude "soroban-timelock-contract" --exclude "soroban-token-contract" |