Skip to content

Commit

Permalink
Merge pull request #82 from kodiak-packages/build-ci
Browse files Browse the repository at this point in the history
Merge CI workflows into 1
  • Loading branch information
RobinWijnant authored Aug 2, 2020
2 parents 1d18b13 + 2cc36de commit fa71441
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 38 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/merge.yml → .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Build and release
name: Pipeline

on:
push:
branches:
- master
on: [push]

jobs:
node:
Expand All @@ -23,13 +20,24 @@ jobs:
- name: Install packages
run: yarn install --frozen-lockfile

- name: Build the docs
run: yarn document
- name: Run ESLint
run: yarn lint --quiet --color

- name: Compile src
run: yarn build

- name: Build the docs
run: yarn document

- name: Run tests
id: tests
run: yarn run test --watchAll=false --colors --ci --coverage

- name: Upload coverage report to codecov
uses: codecov/codecov-action@v1

- name: Deploy docs
if: github.ref == 'refs/heads/master'
uses: crazy-max/ghaction-github-pages@v1
with:
target_branch: gh-pages
Expand All @@ -38,6 +46,7 @@ jobs:
GITHUB_PAT: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}

- name: Release to NPM
if: github.ref == 'refs/heads/master'
run: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/push.yml

This file was deleted.

0 comments on commit fa71441

Please sign in to comment.