From 76243bfcd63bf8f0dbcd58797838fd551d484b74 Mon Sep 17 00:00:00 2001 From: Maggie Neterval Date: Tue, 18 Feb 2020 11:07:31 -0500 Subject: [PATCH] test(ci): experimentally move functional tests to GH actions (#7864) Co-authored-by: Chris Thielen Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Travis Tomsu --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17f20802d47..85128546282 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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