Skip to content

Commit

Permalink
combine CI into a single workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
macfarlandian committed Oct 14, 2020
1 parent dff5921 commit 0364adb
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 140 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/coveralls-complete.yml

This file was deleted.

100 changes: 100 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: "Build Status"

on:
- push
- pull_request

jobs:
lint-public-dashboard:
name: Lint Public Dashboard
runs-on: ubuntu-latest
defaults:
run:
working-directory: public-dashboard-client
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1.1.0
with:
node-version: "12.x"
- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --frozen-lockfile
- run: yarn lint
test-public-dashboard:
name: Test Public Dashboard
runs-on: ubuntu-latest
defaults:
run:
working-directory: public-dashboard-client
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1.1.0
with:
node-version: "12.x"
- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --frozen-lockfile
- run: yarn test --coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
flag-name: public-dashboard-client
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
path-to-lcov: public-dashboard-client/coverage/lcov.info
lint-spotlight-client:
name: Lint Spotlight Client
runs-on: ubuntu-latest
defaults:
run:
working-directory: spotlight-client
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1.1.0
with:
node-version: "12.x"
- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --frozen-lockfile
- run: yarn lint
test-spotlight-client:
name: Test Spotlight Client
runs-on: ubuntu-latest
defaults:
run:
working-directory: spotlight-client
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1.1.0
with:
node-version: "12.x"
- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --frozen-lockfile
- run: yarn test --coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
flag-name: spotlight-client
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
path-to-lcov: spotlight-client/coverage/lcov.info
lint-spotlight-api:
name: Lint Spotlight API
runs-on: ubuntu-latest
defaults:
run:
working-directory: spotlight-api
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1.1.0
with:
node-version: "12.x"
- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --frozen-lockfile
- run: yarn lint
finish-coveralls:
runs-on: ubuntu-latest
needs: [test-public-dashboard, test-spotlight-client]
steps:
- name: Coveralls Parallel Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
46 changes: 0 additions & 46 deletions .github/workflows/public-dashboard-client-ci.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/spotlight-api-ci.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/spotlight-client-ci.yml

This file was deleted.

0 comments on commit 0364adb

Please sign in to comment.