Skip to content

Commit

Permalink
ci: use GitHub Actions to test React UI (#2595)
Browse files Browse the repository at this point in the history
* ci: test React UI using GitHub actions

Signed-off-by: Prem Kumar <prmsrswt@gmail.com>

* ci: remove react-app-test from CircleCI as we now use GH Actions

Signed-off-by: Prem Kumar <prmsrswt@gmail.com>
  • Loading branch information
onprem authored May 13, 2020
1 parent 44ad285 commit afbb63c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
1 change: 0 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ jobs:
exit
fi
taskset 2 make test-ci
taskset 2 make react-app-test
# Cross build is needed for publish_release but needs to be done outside of docker.
cross_build:
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/react-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: react-test

on:
push:
branches:
- master
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '10', '12' ]
name: React UI test on Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v1
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('pkg/ui/react-app/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: make react-app-test

0 comments on commit afbb63c

Please sign in to comment.