From 9ef9db9f47a53e6a349032e49bcb8460c304eaa8 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Fri, 15 Jan 2021 13:21:07 -0600 Subject: [PATCH 1/2] GitHub Actions --- .github/workflows/ci.yml | 55 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 29 --------------------- appveyor.yml | 28 +++----------------- 3 files changed, 58 insertions(+), 54 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..03f68acd --- /dev/null +++ b/.github/workflows/ci.yml @@ -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/set-env@v2.0.0 + 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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9a5e343f..00000000 --- a/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -language: node_js - -notifications: - email: - on_success: never - on_failure: change - -node_js: "12" - -git: - depth: 10 - submodules: false - -branches: - only: - - master - -sudo: false - -env: - - CC=clang CXX=clang++ npm_config_clang=1 - -install: - - npm run prepare - - npm install - -script: - - npm run lint - - npm run test diff --git a/appveyor.yml b/appveyor.yml index 9ce50fe4..63206cea 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 From a5bae311a8fa5a0c01ca5c1fb3847f46ad52b06e Mon Sep 17 00:00:00 2001 From: aminya Date: Thu, 12 Nov 2020 01:37:21 -0600 Subject: [PATCH 2/2] Update status badge in Readme [skip ci] --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d5a341f..5960098d 100644 --- a/README.md +++ b/README.md @@ -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