Skip to content

Commit

Permalink
ci: migrate to GitHub Actions (#66)
Browse files Browse the repository at this point in the history
Migration from Travis to GitHub Actions (c2a3c82), also engine versions are now updated with a known limitations (#67, #68 and #69). Also replace build sticker in the `README.md`
  • Loading branch information
UlisesGascon authored Jan 18, 2025
1 parent df65616 commit f63b783
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 11 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI

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

permissions:
contents: read

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
# TODO: Include Node@22 and Node@23 when https://github.com/yeoman/yo/issues/842 is resolved
# TODO: Include Node@19, Node@20, Node@21 when https://github.com/yeoman/doctor/issues/67 is resolved
# TODO: Include windows-latest when https://github.com/yeoman/doctor/issues/69 is resolved
matrix:
os: [ubuntu-latest, macos-latest]
node: [12, 13, 14, 15, 16, 17, 18]
# Avoid Error: Unable to find Node versions for platform darwin and architecture arm64:
exclude:
- os: macos-latest
node: 12
- os: macos-latest
node: 13
- os: macos-latest
node: 14
- os: macos-latest
node: 15

steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Setup Node.js
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
run: npm install

- name: Install YO
run: npm install -g yo

- name: Run tests
run: npm test
10 changes: 0 additions & 10 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 @@
# Yeoman Doctor [![Build Status](https://travis-ci.org/yeoman/doctor.svg?branch=master)](https://travis-ci.org/yeoman/doctor)
# Yeoman Doctor [![CI](https://github.com/yeoman/doctor/actions/workflows/ci.yml/badge.svg)](https://github.com/yeoman/doctor/actions/workflows/ci.yml)

> Detect potential issues with users system that could prevent Yeoman from working correctly
Expand Down

0 comments on commit f63b783

Please sign in to comment.