Skip to content

Commit

Permalink
Added github actions (#135)
Browse files Browse the repository at this point in the history
* Added github actions

* Removed dist
  • Loading branch information
w8r authored May 9, 2021
1 parent aa36909 commit 0296e5a
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 2,112 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Node CI
# 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

on: [push]
name: Node.js CI

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

jobs:
build:
Expand All @@ -9,18 +16,14 @@ jobs:

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

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm ci
npm run build --if-present
npm test
env:
CI: true
- run: npm ci
- run: npm run build --if-present
- run: npm test
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
push:
tags:
- 'v*.*.*'

jobs:
publish:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm run build
- run: npm test
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
.DS_Store
.reify-cache
npm-debug.log
dist
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

9 changes: 0 additions & 9 deletions dist/martinez.min.js

This file was deleted.

Loading

0 comments on commit 0296e5a

Please sign in to comment.