Skip to content

Commit

Permalink
refactor(ci): use gitlabci
Browse files Browse the repository at this point in the history
  • Loading branch information
d0whc3r committed Jul 5, 2020
1 parent 6cd4b16 commit 066a962
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 3 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Utility to manipulate google drive using nodejs. It could upload content to goog

# :eyes: Project status

![Node.js CI](https://github.com/d0whc3r/node-gdrive/workflows/Node.js%20CI/badge.svg)
[![pipeline status](https://gitlab.com/d0whc3r/node-gdrive/badges/master/pipeline.svg)](https://github.com/d0whc3r/node-gdrive)
[![codecov](https://codecov.io/gh/d0whc3r/node-gdrive/branch/master/graph/badge.svg)](https://codecov.io/gh/d0whc3r/node-gdrive)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/2612116bab5f493cada70bffc3cb6492)](https://www.codacy.com/app/d0whc3r/node-gdrive?utm_source=github.com&utm_medium=referral&utm_content=d0whc3r/node-gdrive&utm_campaign=Badge_Grade)

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml → workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI
name: Sonar CI

on:
push:
Expand All @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x]
node-version: [14.x]

steps:
- uses: actions/checkout@v2
Expand Down
38 changes: 38 additions & 0 deletions workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

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

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
CODECOVS_TOKEN: ${{ secrets.CODECOVS_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
CREDENTIALS_JSON: ${{ secrets.CREDENTIALS_JSON }}
DELETE_ALL_FILES: ${{ secrets.DELETE_ALL_FILES }}
TOKEN_JSON: ${{ secrets.TOKEN_JSON }}
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn build
- run: yarn test:coverage

0 comments on commit 066a962

Please sign in to comment.