Skip to content

Commit

Permalink
Merge pull request atom#133 from aminya/github-action
Browse files Browse the repository at this point in the history
Use GitHub Actions
  • Loading branch information
darangi authored Jun 22, 2021
2 parents c139c59 + 7fdcc9e commit 23d2767
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 53 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: ci
on:
- pull_request
- push

jobs:
Test:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
# - macos-latest
- windows-latest
node_version:
- 10
- 12
# - 14
steps:
- uses: actions/checkout@v2

- name: Install Node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}

- name: Install dependencies
run: npm install

- name: Run tests
run: npm run test

Skip:
if: contains(github.event.head_commit.message, '[skip ci]')
runs-on: ubuntu-latest
steps:
- name: Skip CI 🚫
run: echo skip ci
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Path Watcher Node module
[![mac OS Build Status](https://travis-ci.org/atom/node-pathwatcher.svg?branch=master)](https://travis-ci.org/atom/node-pathwatcher) [![Windows Build Status](https://ci.appveyor.com/api/projects/status/li8dkoucdrc2ryts/branch/master?svg=true
)](https://ci.appveyor.com/project/Atom/node-pathwatcher) [![Depenency Status](https://david-dm.org/atom/node-pathwatcher/status.svg)](https://david-dm.org/atom/node-pathwatcher)
![ci](https://github.com/atom/node-pathwatcher/workflows/ci/badge.svg)
[![Depenency Status](https://david-dm.org/atom/node-pathwatcher/status.svg)](https://david-dm.org/atom/node-pathwatcher)

## Installing

Expand Down
24 changes: 2 additions & 22 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,6 @@
image: Visual Studio 2015

environment:
matrix:
- nodejs_version: "10"
- nodejs_version: "12"

platform:
- x64
- x86

install:
# AppVeyor still does not support Node v12: https://github.com/appveyor/ci/issues/2921
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:PLATFORM
- npm install

test_script:
- node -e "console.log(`${process.version} ${process.arch} ${process.platform}`)"
- npm --version
- npm test

# dummy appveyor
build: off

branches:
only:
- master
- non-existing

0 comments on commit 23d2767

Please sign in to comment.