Skip to content

Commit

Permalink
workflows: add e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
a5-pickle committed Aug 12, 2024
1 parent 6dd77ce commit e5fc043
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 11 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: e2e
on:
push:
branches:
- main
pull_request:

env:
RUSTC_VERSION: 1.75.0
jobs:
test:
name: bash sh/run_test.sh
runs-on: ubuntu-latest
# Anchor Docker image: https://www.anchor-lang.com/docs/verifiable-builds#images
# container: backpackapp/build:v0.30.0
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- uses: metadaoproject/setup-anchor@v2
with:
node-version: "20.11.0"
solana-cli-version: "1.18.15"
anchor-version: "0.30.0"
- name: Set default Rust toolchain
run: rustup default stable
- name: make node_modules
run: make node_modules
- name: cd evm && make build
run: cd evm && make build
working-directory: ./evm
- name: bash sh/run_test.sh
run: bash sh/run_test.sh
working-directory: ./e2e
11 changes: 1 addition & 10 deletions .github/workflows/solana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,11 @@ on:
push:
branches:
- main
- solana/integration
pull_request: null
pull_request:

env:
RUSTC_VERSION: 1.75.0
jobs:
cancel-previous-runs:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

make-cargo-test-all:
name: make cargo-test-all
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/universal-rs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: universal-rs

on:
push:
branches: [main]
branches:
- main
pull_request:

env:
Expand Down

0 comments on commit e5fc043

Please sign in to comment.