Skip to content

Commit

Permalink
feat(github-action): add gh action for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
bukowa committed Jun 28, 2024
1 parent e6fe017 commit f8877a2
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/tests-e2e-js.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: "Test: UI E2E JS"

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_call:
workflow_dispatch:

jobs:

test:
runs-on: ubuntu-latest
name: "Run UI E2E tests"
env:
# xvfb is slow to start
NODE_TEST_TIMEOUT: 90000

steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- name: Setup Just
uses: extractions/setup-just@6e1de3cc407de738551abd6c0923bd5ed5608042
with:
just-version: 1.29.0

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
with:
cache: 'npm'

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true

- name: Setup Rust Cache
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2
with:
cache-all-crates: true
cache-targets: true
cache-directories: |
.build
- name: Install Prerequisites
run: |
. <(just prerequisites)
- name: Run UI E2E tests
run: xvfb-run -a just test-e2e

0 comments on commit f8877a2

Please sign in to comment.