Skip to content

Commit

Permalink
test: hybrid (#392)
Browse files Browse the repository at this point in the history
* git ignore .envs

* test: add hybrid job

* test: fix hybrid concurrency

* test: add contract test on hybrid

---------

Co-authored-by: renancloudwalk <[email protected]>
  • Loading branch information
mayconamaroCW and renancloudwalk authored Mar 26, 2024
1 parent 82d30e0 commit 9590fd2
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/e2e-contracts-hybrid.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Contracts E2E Hybrid tests

on:
pull_request:
branches:
- '*'
workflow_dispatch:

jobs:
contract_test_hybrid:
name: Contracts E2E Hybrid Tests
runs-on: ubuntu-latest
timeout-minutes: 40

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

- name: Set up Just
uses: extractions/setup-just@v1

- name: Set up ASDF Version Manager
uses: asdf-vm/actions/setup@v3

- name: Install Node.js
run: |
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf install nodejs 20.10.0
asdf global nodejs 20.10.0
- name: Set up Test and clone repositories
run: just setup

- name: Run e2e tests
run: PERM_STORAGE=hybrid://postgres:[email protected]:5432/stratus just contracts-test-stratus-postgres
10 changes: 10 additions & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,14 @@ jobs:

concurrency:
group: ${{ github.workflow }}-postgres-${{ github.ref || github.run_id }}
cancel-in-progress: true

e2e-stratus-hybrid:
name: E2E Stratus Hybrid
uses: ./.github/workflows/_setup-e2e.yml
with:
test_command: 'PERM_STORAGE=hybrid://postgres:[email protected]:5432/stratus just e2e-stratus-postgres'

concurrency:
group: ${{ github.workflow }}-hybrid-${{ github.ref || github.run_id }}
cancel-in-progress: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# IDEs / Tools
.vscode
.tool-versions
.env

# Data
data/**/*.csv
Expand Down

0 comments on commit 9590fd2

Please sign in to comment.