Skip to content

Commit

Permalink
chore: Add GitHub actions (#284)
Browse files Browse the repository at this point in the history
* add GitHub actions (#283)

Current steps:
1. Checkout
2. yarn install and lint
3. yarn test

* Sathia27 GitHub actions (#2)

* #283 Add github actions

* fix(#283): remove unused lines in github actions

* fix(#283): remove yarn install

* fix(#283): add checkout actions

* fix(#283): add CI on PR

* fix(#283): test and setup as multiple job, remove travis

* feat(#283): add github action badge, fix multi job

* fix(#283): fix yaml syntax

* fix(#283): fix yaml parsing issue - workflow

* fix(#283): fix steps github actions

* test(#283): test multi jobs

* test(#283): test multiple jobs

* test(#283): test multi job in actions

* test(#283): test multi jobs with steps

* test(test multi jobs):

* test(#283): add multi jobs steps

* test(#283): run multi jobs

* test(#283): add multi job action

* test(#283): multi jobs action

* test(#283): add runs-on in all jobs

* test(#283): add test job

* test(#283): refactored jobs in github actions

* fix(#283): fix multi job issue - github actions

* test(#283): fix multi job build

* test(#283): fix indentation

* feat(#238): fix multi job failure

* test(#283): add synchronous job

* test(#283): fix yarn test

* test(#238): moving from yaml to workflow

* ci(#283): fix multi job failures

* test(#283): run multi jobs

* ci(#283): run yarn test without install

* ci(#283): run yarn test in separate job

* Update .github/workflows/main.yml

Co-Authored-By: Amaury Martiny <[email protected]>
  • Loading branch information
sathia27 and amaury1093 committed Oct 15, 2019
1 parent 2141a0f commit 037389f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
name: CI

on: [push]
on: [push, pull_request]

jobs:
build:

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Yarn lint
run: |
yarn install
yarn lint
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Run a one-line script
run: echo Hello, world!
- name: Run a multi-line script
- name: Test
run: |
echo Add other actions to build,
echo test, and deploy your project.
yarn install
yarn test
10 changes: 0 additions & 10 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 @@ -2,7 +2,7 @@

Know how many cigarettes you smoke based on the pollution of your location. :poop::smoking:

[![Travis (.org)](https://img.shields.io/travis/amaurymartiny/shoot-i-smoke.svg)](https://travis-ci.org/amaurymartiny/shoot-i-smoke)
[![Actions Status](https://github.com/amaurymartiny/shoot-i-smoke/workflows/CI/badge.svg)](https://github.com/amaurymartiny/shoot-i-smoke/actions)
![GitHub](https://img.shields.io/github/license/amaurymartiny/shoot-i-smoke.svg)
[![David](https://img.shields.io/david/amaurymartiny/shoot-i-smoke.svg)](https://david-dm.org/amaurymartiny/shoot-i-smoke)
[![Maintainability](https://api.codeclimate.com/v1/badges/9fc8ebb000978f14b6d0/maintainability)](https://codeclimate.com/github/amaurymartiny/shoot-i-smoke/maintainability)
Expand Down

0 comments on commit 037389f

Please sign in to comment.