Skip to content

Commit

Permalink
chore(ci): replace travis with github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
beeequeue authored Oct 10, 2021
1 parent 325b573 commit a74b3c4
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 18 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: ci

on:
push:
branches: [ master ]
pull_request_target:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: 12.x
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile

- run: yarn build
# Enable colors
env:
FORCE_COLOR: 3
TERM: xterm-256color

lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: 12.x
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile

- run: yarn lint
# Enable colors
env:
FORCE_COLOR: 3
TERM: xterm-256color

test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: 12.x
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile

- run: yarn test
# Enable colors
env:
FORCE_COLOR: 3
TERM: xterm-256color

- uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
debug: true
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![NPM version](http://img.shields.io/npm/v/syncpack.svg?style=flat-square)](https://www.npmjs.com/package/syncpack)
[![NPM downloads](http://img.shields.io/npm/dm/syncpack.svg?style=flat-square)](https://www.npmjs.com/package/syncpack)
[![Build Status](http://img.shields.io/travis/JamieMason/syncpack/master.svg?style=flat-square)](https://travis-ci.org/JamieMason/syncpack)
[![Build Status](https://img.shields.io/github/workflow/status/JamieMason/syncpack/ci)](https://github.com/JamieMason/syncpack/actions)
[![Maintainability](https://api.codeclimate.com/v1/badges/516439365fdd0e3c6526/maintainability)](https://codeclimate.com/github/JamieMason/syncpack/maintainability)

## 🌩 Installation
Expand Down

0 comments on commit a74b3c4

Please sign in to comment.