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

GitHub Actions #359

Open
wants to merge 1 commit 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
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:
- 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
atom_channel:
- stable
- nightly
steps:
- uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v2
with:
path: |
'node_modules'
'C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140'
key: ${{ runner.os }}-${{ matrix.atom_channel }}-${{ hashFiles('package.json') }}

- uses: UziTech/action-setup-atom@v1
with:
channel: ${{ matrix.atom_channel }}

- name: Install Visual Studio 2015 on Windows
if: ${{ contains(matrix.os, 'windows') }}
run: |
choco install visualcpp-build-tools --version=14.0.25420.1 --ignore-dependencies -y --params "'/IncludeRequired'"
echo ::set-env name=VCTargetsPath::'C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140'

- name: Install dependencies
run: apm install

- name: Run tests
run: apm test

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

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# C/C++ language support in Atom
[![macOS Build Status](https://travis-ci.org/atom/language-c.svg?branch=master)](https://travis-ci.org/atom/language-c)
[![Windows Build Status](https://ci.appveyor.com/api/projects/status/8oy1hmp4yrij7c32/branch/master?svg=true)](https://ci.appveyor.com/project/Atom/language-c/branch/master)
![ci](https://github.com/atom/language-c/workflows/ci/badge.svg)
[![Dependency Status](https://david-dm.org/atom/language-c.svg)](https://david-dm.org/atom/language-c)

Adds syntax highlighting and snippets to C/C++ files in Atom.
Expand Down
29 changes: 4 additions & 25 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,6 @@
version: "{build}"

platform: x64
# empty appveyor
build: off

branches:
only:
- master

clone_depth: 10

skip_tags: true

environment:
APM_TEST_PACKAGES:

matrix:
- ATOM_CHANNEL: stable
- ATOM_CHANNEL: beta

install:
- ps: Install-Product node 4

build_script:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/atom/ci/master/build-package.ps1'))

test: off
deploy: off
only:
- non-existing