use SPC to manage workspace directory #1147
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
name: e2e | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
pre_job: | |
runs-on: ubuntu-latest | |
outputs: | |
should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
steps: | |
- id: skip_check | |
uses: fkirc/skip-duplicate-actions@v5 | |
with: | |
concurrent_skipping: same_content_newer | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
strategy: | |
matrix: | |
test-name: ['transactions', 'deposit', 'withdraw', 'erc20'] | |
needs: pre_job | |
if: needs.pre_job.outputs.should_skip != 'true' | |
steps: | |
- name: Cache git folder | |
uses: actions/cache@v3 | |
with: | |
path: ./.git | |
key: git-folder | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- uses: ./.github/actions/node | |
- uses: ./.github/actions/foundry | |
- uses: ./.github/actions/go | |
- name: Make specular | |
run: make | |
- name: Setup workspace | |
run: mkdir workspace && cp -a config/e2e_test/. workspace/ | |
- name: Run tests | |
run: cd workspace && ../sbin/run_e2e_tests.sh ${{ matrix.test-name }} | |
- name: Print log | |
if: failure() | |
run: cd workspace/workspace-test && cat proc.* |