Skip to content

Commit

Permalink
Travis CI -> GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ultraq committed Jun 20, 2021
1 parent f6022e3 commit aef6387
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 10 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
@@ -0,0 +1,31 @@
name: build

on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
- run: npm run build
- run: npm test
- uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.github_token }}
flag-name: run-node-${{ matrix.node-version }}
parallel: true
finish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -2,7 +2,7 @@
ThymeleafJS
===========

[![Build Status](https://travis-ci.com/ultraq/thymeleafjs.svg?branch=main)](https://travis-ci.com/ultraq/thymeleafjs)
[![Build Status](https://github.com/ultraq/thymeleafjs/actions/workflows/build.yml/badge.svg)](https://github.com/ultraq/thymeleafjs/actions)
[![Coverage Status](https://coveralls.io/repos/github/ultraq/thymeleafjs/badge.svg?branch=main)](https://coveralls.io/github/ultraq/thymeleafjs?branch=main)
[![npm](https://img.shields.io/npm/v/thymeleaf.svg?maxAge=3600)](https://www.npmjs.com/package/thymeleaf)

Expand Down
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "thymeleaf",
"version": "0.20.5",
"version": "0.21.0",
"description": "A basic implementation of the Thymeleaf templating engine in JavaScript",
"author": "Emanuel Rabina <emanuelrabina@gmail.com> (http://www.ultraq.net.nz/)",
"license": "Apache-2.0",
Expand Down Expand Up @@ -58,6 +58,6 @@
"rollup-plugin-terser": "^6.1.0"
},
"engines": {
"node": ">=10"
"node": ">=12"
}
}

0 comments on commit aef6387

Please sign in to comment.