Skip to content

Commit

Permalink
Revert "ci(examples): remove test-e2e job since swcx cannot run w…
Browse files Browse the repository at this point in the history
…ithout a tty, possibly related to swc-project/swc#5017"

This reverts commit 56b12aa.
  • Loading branch information
medfreeman committed Sep 9, 2022
1 parent 9764e63 commit 8d22d7f
Showing 1 changed file with 41 additions and 3 deletions.
44 changes: 41 additions & 3 deletions .github/workflows/format_build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,46 @@ jobs:
- name: Use rust cache action
uses: Swatinem/rust-cache@v2

- name: Setup node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'

- name: Install pnpm
run: corepack enable

- name: Run cargo test
uses: actions-rs/cargo@v1
run: pnpm test:lib

test-e2e:
name: End-to-end tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Checkout branch
uses: actions/checkout@v3

- name: Install rustup `stable` toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-wasi
override: true

- name: Use rust cache action
uses: Swatinem/rust-cache@v2

- name: Setup node.js
uses: actions/setup-node@v3
with:
command: test
args: --release
node-version-file: '.nvmrc'

- name: Install pnpm & deps
run: |
corepack enable
pnpm install
- name: Run npm `test:e2e`
run: pnpm test:e2e

0 comments on commit 8d22d7f

Please sign in to comment.