Skip to content

Commit

Permalink
Replace Travis with GH Actions (#673)
Browse files Browse the repository at this point in the history
  • Loading branch information
Samkeer1 authored Apr 8, 2024
1 parent 4730f6f commit 41b7372
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 31 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy

on:
push:
tags: [ 'v*.*.*' ]
branches: master

jobs:
test:
uses: ./.github/workflows/test.yml
deploy:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
registry-url: 'https://registry.npmjs.org'
with:
node-version: 16
- run: npm install
- run: npm run build
- run: npx semantic-release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_GITHUB }}
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Test

on: [push, workflow_call]

jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
registry-url: 'https://registry.npmjs.org'
with:
node-version: 16
- run: npm install
- run: npm run build
- run: npm test
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<img src="docs-src/static/images/harmonium-logo.png" width="400px"/>

[![NPM Version][npm-badge]][npm-url]
[![Travis Build Status][travis-badge]][travis-url]
[![Dependency Status](https://dependencyci.com/github/revelrylabs/harmonium/badge)](https://dependencyci.com/github/revelrylabs/harmonium)
[![Coverage Status](https://opencov.prod.revelry.net/projects/8/badge.svg)](https://opencov.prod.revelry.net/projects/8)

Expand Down Expand Up @@ -189,8 +188,6 @@ adhere to the Contributor Covenant Code of Conduct (see [CODE_OF_CONDUCT.md](htt

[npm-badge]: https://img.shields.io/npm/v/harmonium.svg
[npm-url]: https://www.npmjs.com/package/harmonium
[travis-badge]: https://img.shields.io/travis/revelrylabs/harmonium.svg
[travis-url]: https://travis-ci.org/revelrylabs/harmonium

## License

Expand Down

0 comments on commit 41b7372

Please sign in to comment.