Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

GitHub actions #103

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
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
with:
fetch-depth: 10
submodules: false

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

- name: Update submodules
run: git submodule update --init

- name: Use Clang on Ubuntu or MacOS
if: ${{ contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos') }}
uses: allenevans/[email protected]
with:
CC: 'clang'
CXX: 'clang++'
npm_config_clang: 1

- name: Install dependencies
run: npm install

- name: Run tests on Ubuntu or MacOS
if: ${{ contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos') }}
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: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Git Node module [![Build Status](https://travis-ci.org/atom/git-utils.svg?branch=master)](https://travis-ci.org/atom/git-utils) [![Build status](https://ci.appveyor.com/api/projects/status/myrqbxes1mv8b472?svg=true)](https://ci.appveyor.com/project/Atom/git-utils)
# Git Node module

![ci](https://github.com/atom/git-utils/workflows/ci/badge.svg)


Helpers for working with Git repositories built natively on top of
Expand Down
28 changes: 3 additions & 25 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,6 @@
version: "{build}"

image: Visual Studio 2015

platform: x64
# dummy appveyor
build: off

branches:
only:
- master

clone_depth: 10

skip_tags: true

init:
# Use CRLF to test correct Windows behavior
- git config --global core.autocrlf true

install:
- ps: Install-Product node 12
- npm run prepare
- npm install
- npm run lint
- npm run test

build: off
test: off
deploy: off
- non-existing