Skip to content
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
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on:
push:
paths-ignore:
- "views/website/libraries/*.json"
pull_request:
paths-ignore:
- "views/website/libraries/*.json"

jobs:
test:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
node-version: '14'
- run: npm install
- run: npm test
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

14 changes: 13 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,17 @@ module.exports = (grunt) => {
},

pug: {
website: {
options: {
data: {
languages: getLanguages(),
},
},
files: {
"dist/website/index.html": "views/website/index.pug",
"dist/website/introduction/index.html": "views/website/introduction.pug",
},
},
extension: {
files: {
"dist/extension/index.html": "views/extension/index.pug",
Expand Down Expand Up @@ -258,11 +269,12 @@ module.exports = (grunt) => {

grunt.registerTask("functional-tests", [
"build-website-dev",
"pug:website",
"connect:website",
"mochaTest:functional",
]);

grunt.registerTask("test", ["unit-tests", "functional-tests"]);

grunt.registerTask("default", ["build-dev", "connect:website", "watch"]);
};
};
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

<img src="https://cdn.auth0.com/blog/jwtio/jwtio.png"/>

[![Build Status](https://travis-ci.org/jsonwebtoken/jsonwebtoken.github.io.png?branch=master)](https://travis-ci.org/jsonwebtoken/jsonwebtoken.github.io)

### Sponsor

|||
Expand Down
2 changes: 1 addition & 1 deletion libraries.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { Octokit } = require("@octokit/rest");
const dotenv = require("dotenv").config();
const getLanguages = require("./views/website/libraries/support/get-languages.js");
const octokit = new Octokit({
auth: process.env.GITHUB,
auth: process.env.GITHUB || process.env.GITHUB_TOKEN,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in GitHub Actions a read-only GITHUB_TOKEN environment variable is always present

});

function fetchGithubStars() {
Expand Down
Loading