Skip to content
Snippets Groups Projects
Unverified Commit 274be949 authored by Ariya Hidayat's avatar Ariya Hidayat Committed by GitHub
Browse files

Use GitHub Actions to run front-end tests (#15507)

parent 8df9d954
No related branches found
No related tags found
No related merge requests found
......@@ -722,14 +722,6 @@ jobs:
- /home/circleci/metabase/metabase/node_modules
- /home/circleci/.cache/Cypress
fe-tests-unit:
executor: clojure-and-node
steps:
- run-yarn-command:
command-name: Run frontend unit tests
command: run test-unit
skip-when-no-change: true
shared-tests-cljs:
executor: clojure-and-node
steps:
......@@ -738,14 +730,6 @@ jobs:
command: run test-cljs
skip-when-no-change: true
fe-tests-timezones:
executor: clojure-and-node
steps:
- run-yarn-command:
command-name: Run frontend timezone tests
command: run test-timezones
skip-when-no-change: true
# Unlike the other build-uberjar steps, this step should be run once overall and the results can be shared between
# OSS and EE uberjars.
build-uberjar-drivers:
......@@ -1164,15 +1148,9 @@ workflows:
- fe-deps:
requires:
- checkout
- fe-tests-unit:
requires:
- fe-deps
- shared-tests-cljs:
requires:
- fe-deps
- fe-tests-timezones:
requires:
- fe-deps
- fe-tests-cypress:
matrix:
......
......@@ -16,7 +16,7 @@ on:
- 'shared/**'
- 'enterprise/frontend/**'
- 'docs/**'
- '**/package.lock'
- '**/package.json'
- '**/yarn.lock'
- '.github/workflows/**'
......@@ -75,3 +75,39 @@ jobs:
- run: yarn install --frozen-lockfile --prefer-offline
- run: yarn run lint-docs-links
name: Run docs links checker
fe-tests-unit:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Prepare Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Get yarn cache
uses: actions/cache@v2
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --frozen-lockfile --prefer-offline
- run: yarn run test-unit
name: Run frontend unit tests
fe-tests-timezones:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Prepare Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Get yarn cache
uses: actions/cache@v2
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --frozen-lockfile --prefer-offline
- run: yarn run test-timezones
name: Run frontend timezones tests
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment