Skip to content

Commit

Permalink
Merge pull request #127 from liphe/davazp-github-actions-1
Browse files Browse the repository at this point in the history
Github actions integrations
  • Loading branch information
davazp authored Apr 4, 2020
2 parents b27c9f2 + 0476b43 commit 59c3c2e
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 26 deletions.
15 changes: 15 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
repo:
- ./*
- .github/**

cli:
- packages/delisp-cli/**

core:
- packages/delisp-core/**

liphe:
- packages/liphe/**

dependencies:
- yarn.lock
11 changes: 11 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "Pull Request Labeler"
on:
- pull_request

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Pipeline CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "12.x"

- 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 # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn build:core
- run: yarn bootstrap

- run: yarn test --coverage
- uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true

- run: yarn build:liphe
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
delisp [![Build Status](https://travis-ci.org/liphe/delisp.svg?branch=master)](https://travis-ci.org/liphe/delisp) [![codecov](https://codecov.io/gh/liphe/delisp/branch/master/graph/badge.svg)](https://codecov.io/gh/liphe/delisp)
delisp ![Pipeline CI](https://github.com/liphe/delisp/workflows/Pipeline%20CI/badge.svg) [![codecov](https://codecov.io/gh/liphe/delisp/branch/master/graph/badge.svg)](https://codecov.io/gh/liphe/delisp)
======


0 comments on commit 59c3c2e

Please sign in to comment.