Files
pezkuwi-telemetry/.github/workflows/frontend.yml
T
James Wilson fe19a75414 Un-brittle-ify backend E2E tests and have them run by default again in CI (#397)
* test running tests

* Add delay so that core knows about node before feed subscribes to limit chance of race

* move delaye to the right place

* Don't do expensive docker step untill we will be pushing the image

* docker test skipped as hoped, so push to 'true'

* just remove docker steps in github CI entirely since they aren't needed by anything (gitlab CI does this stuff now)

* run CI on pull requests too to catch PRs from forks
2021-09-06 11:30:17 +01:00

49 lines
1018 B
YAML

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Frontend CI
on:
push:
paths:
- '.github/workflows/frontend.yml'
- 'frontend/**'
- '!backend/**'
pull_request:
paths:
- '.github/workflows/frontend.yml'
- 'frontend/**'
- '!backend/**'
defaults:
run:
working-directory: ./frontend
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: install
run: yarn install
- name: check
run: yarn pretty:check
- name: Test
run: yarn test
- name: Build
run: yarn build