Skip to content

Commit

Permalink
[actions] migrate OSX tests to GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
aks- authored and ljharb committed Mar 23, 2024
1 parent fa60e3d commit e522dcc
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 40 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/node-tests-only.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Node.js tests-only

on:
[push, pull_request]

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

strategy:
matrix:
os: [ubuntu-latest, macos-latest]
node_version: [14, 12, 10, 8, 6, 4]
eslint_version: [5, 4, 3, 2]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup NVM
run: |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
- name: Setup Node.js ${{ matrix.node_version }}
run: |
source ~/.nvm/nvm.sh
nvm install ${{ matrix.node_version }}
- name: Install latest npm for given node version
run: |
source ~/.nvm/nvm.sh
nvm install-latest-npm
- name: Install npm dependencies
env:
ESLINT_VERSION: ${{ matrix.eslint_version }}
run: |
NPM_CONFIG_LEGACY_PEER_DEPS=true npm install
npm run copy-metafiles
- name: Install specific eslint version
if: ${{ matrix.eslint_version != null }}
env:
ESLINT_VERSION: ${{ matrix.eslint_version }}
run: |
NPM_CONFIG_LEGACY_PEER_DEPS=true npm install
./tests/dep-time-travel.sh
npm run pretest
- name: Run tests
run: npm run tests-only

- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v4

40 changes: 0 additions & 40 deletions .travis.yml

This file was deleted.

0 comments on commit e522dcc

Please sign in to comment.