Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
Chore: Update repo CI/CD configs ⚙️
Browse files Browse the repository at this point in the history
  • Loading branch information
DHedgecock committed Apr 24, 2020
1 parent fadcac3 commit 0710b69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@ name: CI/CD
on: [push]

jobs:
skip:
name: CI Skip
if: contains(github.event.head_commit.message, 'skip ci')
runs-on: ubuntu-latest
steps:
- name: Skip CI Commit
run: echo "Skip CI commit success"

# --- Package testing ✅
test:
name: Continuous Integration
if: contains(github.event.head_commit.message, 'skip ci') == false
Expand All @@ -19,27 +12,27 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '12.16'
- name: Install
run: CI=true npm install
- name: Code Climate - Setup
# Install the Code Climate reporter in workspace
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
- name: Test
run: npm test
# Upload test code coverage report to Code Climate (branch must be explicitly set)
- name: Code Climate - Report
if: success()
# Upload test code coverage report to Code Climate (branch must be explicitly set)
run: |
export GIT_BRANCH="${GIT_BRANCH:-${GITHUB_REF:11}}"
./cc-test-reporter after-build
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
GIT_BRANCH: ${{ github.head_ref }}

# --- Package publishing 🚀
publish:
name: Continuous Deployment
if: github.ref == 'refs/heads/master'
Expand All @@ -50,7 +43,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '12.16'
- name: Install
run: CI=true npm install
- name: Semantic Release
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"test:format": "prettier --check index.js lib/**",
"test:lint": "NODE_ENV=test eslint --format=pretty index.js lib",
"test:unit": "npx jest",
"format": "prettier --write '*.{js,json,md}' '**/*.{js,json,md,mdx,scss}' !CHANGELOG.md"
"format": "prettier --write '*.{js,json,md,ts}' '**/*.{js,json,md,ts}' !CHANGELOG.md"
},
"dependencies": {
"commitizen": "4.0.4",
Expand Down

0 comments on commit 0710b69

Please sign in to comment.