Skip to content

Commit

Permalink
chore(release): Merge pull request #148 from jkeam/develop
Browse files Browse the repository at this point in the history
Move to GitHub Actions
  • Loading branch information
jkeam authored Dec 29, 2023
2 parents db2818f + 5ff6c37 commit 6e63102
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 20 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Develop Build"
run-name: develop-build-${{ github.run_number }}-${{ github.run_id }}
on:
push:
branches:
- develop
jobs:
develop-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.10.0'
- name: Install npm packages
run: npm ci
- name: Test
run: npm test
- name: Lint
run: npm run lint
- name: Build
run: npm run build
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Main Build"
run-name: main-build-${{ github.run_number }}-${{ github.run_id }}
on:
push:
branches:
- master
- main
jobs:
develop-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.10.0'
- name: Install npm packages
run: npm ci
- name: Test
run: npm test
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
- name: Add code coverage
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: npm run coveralls
19 changes: 0 additions & 19 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
@@ -1,7 +1,7 @@
<img src='./_art/redux_sauce.png' align='left' />

[![npm module](https://badge.fury.io/js/reduxsauce.svg)](https://www.npmjs.org/package/reduxsauce)
[![Build Status](https://travis-ci.com/jkeam/reduxsauce.svg?branch=master)](https://travis-ci.com/jkeam/reduxsauce)
![Build Status](https://github.com/jkeam/reduxsauce/actions/workflows/main.yml/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/jkeam/reduxsauce/badge.svg?branch=master)](https://coveralls.io/github/jkeam/reduxsauce?branch=master)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

Expand Down

0 comments on commit 6e63102

Please sign in to comment.