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

Commit d06e74f

Browse files
committed
GitHub Actions
1 parent 16b9f3e commit d06e74f

File tree

4 files changed

+57
-70
lines changed

4 files changed

+57
-70
lines changed

.github/workflows/ci.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: ci
2+
on:
3+
- pull_request
4+
- push
5+
6+
jobs:
7+
Test:
8+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os:
14+
- ubuntu-latest
15+
- macos-latest
16+
- windows-latest
17+
atom_channel:
18+
- stable
19+
- nightly
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Cache
23+
uses: actions/cache@v2
24+
with:
25+
path: |
26+
'node_modules'
27+
'C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140'
28+
key: ${{ runner.os }}-${{ matrix.atom_channel }}-${{ hashFiles('package.json') }}
29+
30+
- uses: UziTech/action-setup-atom@v1
31+
with:
32+
channel: ${{ matrix.atom_channel }}
33+
34+
- name: Install Visual Studio 2015 on Windows
35+
if: ${{ contains(matrix.os, 'windows') }}
36+
run: |
37+
choco install visualcpp-build-tools --version=14.0.25420.1 --ignore-dependencies -y --params "'/IncludeRequired'"
38+
echo ::set-env name=VCTargetsPath::'C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140'
39+
40+
- name: Install dependencies
41+
run: apm install
42+
43+
- name: Run tests
44+
run: apm test
45+
46+
Skip:
47+
if: contains(github.event.head_commit.message, '[skip ci]')
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: Skip CI 🚫
51+
run: echo skip ci

.travis.yml

-41
This file was deleted.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# JavaScript language support in Atom
2-
[![macOS Build Status](https://travis-ci.org/atom/language-javascript.svg?branch=master)](https://travis-ci.org/atom/language-javascript)
3-
[![Windows Build Status](https://ci.appveyor.com/api/projects/status/ktooccwna96ssiyr/branch/master?svg=true)](https://ci.appveyor.com/project/Atom/language-javascript-dijf8/branch/master)
2+
3+
![ci](https://github.com/atom/language-javascript/workflows/ci/badge.svg)
44
[![Dependency Status](https://david-dm.org/atom/language-javascript.svg)](https://david-dm.org/atom/language-javascript)
55

66
Adds syntax highlighting and snippets for JavaScript in Atom.

appveyor.yml

+4-27
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,6 @@
1-
version: "{build}"
2-
3-
image: Visual Studio 2015
4-
5-
platform: x64
1+
# empty appveyor
2+
build: off
63

74
branches:
8-
only:
9-
- master
10-
11-
clone_depth: 10
12-
13-
skip_tags: true
14-
15-
environment:
16-
APM_TEST_PACKAGES:
17-
18-
matrix:
19-
- ATOM_CHANNEL: stable
20-
- ATOM_CHANNEL: beta
21-
22-
install:
23-
- ps: Install-Product node 4
24-
25-
build_script:
26-
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/atom/ci/master/build-package.ps1'))
27-
28-
test: off
29-
deploy: off
5+
only:
6+
- non-existing

0 commit comments

Comments
 (0)