Skip to content
Snippets Groups Projects
Unverified Commit 92428fa6 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

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


- Cherry picks 274be949 from `master`, which extracted unit and timezone tests from CircleCi and made them run using GitHub actions
- Synchronizes the "state" between the `master` and `release-x.39.x` branches

Co-authored-by: default avatarAriya Hidayat <ariya@metabase.com>
parent c3bbf8a1
No related branches found
No related tags found
No related merge requests found
......@@ -716,14 +716,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:
......@@ -732,14 +724,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:
......@@ -1169,15 +1153,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