Skip to content

Commit

Permalink
ci: migrate to GH Actions (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
UlisesGascon authored Feb 7, 2025
1 parent 25d1ca4 commit febc5a7
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 8 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
# TODO: We need to re-introduce Node 6 and 7 once we have a way to run tests on them.
node-version: [8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23]
continue-on-error: true
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Run lint
run: npm run pretest

- name: Run tests
run: npm test
7 changes: 0 additions & 7 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 @@
# Node Generator [![Build Status](https://secure.travis-ci.com/yeoman/generator-node.svg?branch=master)](https://travis-ci.com/yeoman/generator-node) [![Gitter](https://img.shields.io/badge/Gitter-Join_the_Yeoman_chat_%E2%86%92-00d06f.svg)](https://gitter.im/yeoman/yeoman) [![OpenCollective](https://opencollective.com/yeoman/backers/badge.svg)](https://opencollective.com/yeoman#support)
# Node Generator [![CI](https://github.com/yeoman/generator-node/actions/workflows/ci.yml/badge.svg)](https://github.com/yeoman/generator-node/actions/workflows/ci.yml) [![Gitter](https://img.shields.io/badge/Gitter-Join_the_Yeoman_chat_%E2%86%92-00d06f.svg)](https://gitter.im/yeoman/yeoman) [![OpenCollective](https://opencollective.com/yeoman/backers/badge.svg)](https://opencollective.com/yeoman#support)

`generator-node` creates a base template to start a new Node.js module.

Expand Down

0 comments on commit febc5a7

Please sign in to comment.