Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: gha #190

Merged
merged 5 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: build

on:
push:
branches:
- master
tags:
- v*
pull_request:

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
node: [8, 10, 12, 14, 16, 18, 20, 22]
steps:
- uses: Brightspace/third-party-actions@actions/checkout

- uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version: ${{ matrix.node }}

- run: npm install
- run: npm test

publish:
if: github.ref_type == 'tag'
needs: test

runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read
id-token: write
steps:
- uses: Brightspace/third-party-actions@actions/checkout

- uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'

- run: npm install
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@
"scripts": {
"check-style": "eslint .",
"pretest": "npm run check-style",
"test": "nyc --all --include src -- mocha spec",
"report-cov": "nyc report --reporter=text-lcov | coveralls"
"test": "nyc --all --include src --reporter=text-summary -- mocha spec"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/Brightspace/node-jwk-to-pem.git"
"url": "git+https://github.com/Brightspace/node-jwk-to-pem"
},
"keywords": [
"jwt",
Expand All @@ -37,7 +36,6 @@
},
"devDependencies": {
"chai": "^4.2.0",
"coveralls": "^3.0.5",
"eslint": "^6.0.1",
"eslint-config-brightspace": "^0.6.4",
"jwa": "^1.1.4",
Expand Down