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

Use GitHub Actions to run shared CLJS tests (#19854)

parent 12de5f85
Branches
Tags
No related merge requests found
......@@ -841,15 +841,6 @@ jobs:
- /home/circleci/metabase/metabase/node_modules
- /home/circleci/.cache/Cypress
shared-tests-cljs:
executor: builder
steps:
- attach-workspace
- run-yarn-command:
command-name: Run Cljs tests for shared/ code
command: run test-cljs
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:
......@@ -1316,10 +1307,6 @@ workflows:
requires:
- checkout
- shared-tests-cljs:
requires:
- fe-deps
- fe-tests-cypress:
matrix:
parameters:
......
name: CLJS
on:
push:
branches:
- '**'
paths:
- 'shared/src/'
- '**/package.json'
- '**/yarn.lock'
- '.github/workflows/**'
pull_request:
jobs:
shared-tests-cljs:
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 M2 cache
uses: actions/cache@v2
with:
path: |
~/.m2
~/.gitlibs
key: ${{ runner.os }}-cljs-${{ hashFiles('**/deps.edn') }}
- name: Get yarn cache
uses: actions/cache@v2
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Get node_modules cache
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --frozen-lockfile --prefer-offline
- name: Run Cljs tests for shared/ code
run: yarn run test-cljs
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment