Skip to content

Commit

Permalink
removed travis, added githib actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mohlsen committed Sep 18, 2024
1 parent 9329365 commit ce3474c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 10 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Validation

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

jobs:
test-and-lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- name: Run tests
run: npm test
- name: Run linter
run: npm run lint
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# check-engine [![Build Status](https://travis-ci.org/mohlsen/check-engine.svg?branch=master)](https://travis-ci.org/mohlsen/check-engine)
# check-engine ![Build Status](https://github.com/mohlsen/check-engine/actions/workflows/validation.yml/badge.svg?branch=master)
A utility to check your [package.json engines](https://docs.npmjs.com/files/package.json#engines) in Node.js projects. Inspired by the [Thali Project][thali] in [validateBuildEnvironment.js][thalicode]

## About
Expand Down

0 comments on commit ce3474c

Please sign in to comment.