Skip to content

Commit

Permalink
test(ci): experimentally move functional tests to GH actions (spinnak…
Browse files Browse the repository at this point in the history
…er#7864)

Co-authored-by: Chris Thielen <christopherthielen@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Travis Tomsu <ttomsu@google.com>
  • Loading branch information
4 people authored and Yun Zhang committed Mar 28, 2021
1 parent 120253b commit 76243bf
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,42 @@ jobs:
if: steps.purebump.outputs.ispurebump != 'true'
run: yarn test --single-run

functional-tests:
name: Functional tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Ensure package bumps are pure
id: purebump
run: app/scripts/modules/assert_package_bumps_standalone.sh

- uses: actions/setup-node@v1
if: steps.purebump.outputs.ispurebump != 'true'
with:
node-version: ${{ env.NODE_VERSION }}

- name: Get yarn cache
if: steps.purebump.outputs.ispurebump != 'true'
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v1
if: steps.purebump.outputs.ispurebump != 'true'
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
if: steps.purebump.outputs.ispurebump != 'true'
run: yarn --frozen-lockfile

- name: Functional Tests
if: steps.purebump.outputs.ispurebump != 'true'
run: node test/functional/run.js --replay-fixtures --serve-deck --imposter-port=8084 --browser=chrome --headless

build:
name: Production Build
runs-on: ubuntu-latest
Expand Down

0 comments on commit 76243bf

Please sign in to comment.