From f889acb7f6f1ee99e0689c62fe9236e201aff695 Mon Sep 17 00:00:00 2001 From: sadick254 Date: Mon, 26 Apr 2021 16:56:37 +0300 Subject: [PATCH] Migrate to Github Actions --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++++ .travis.yml | 15 --------------- README.md | 2 +- appveyor.yml | 29 ----------------------------- package.json | 2 +- 5 files changed, 29 insertions(+), 46 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml delete mode 100644 appveyor.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..ad1b08b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +name: CI + +on: [push] + +env: + CI: true + +jobs: + Test: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + channel: [stable, beta] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v1 + - uses: UziTech/action-setup-atom@v2 + with: + version: ${{ matrix.channel }} + - name: Install windows-build-tools + if: ${{ matrix.os == 'windows-latest' }} + run: | + npm config set msvs_version 2019 + - name: Install dependencies + run: npm i + - name: Run tests + run: atom --test spec diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 20cfe51..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: objective-c - -notifications: - email: - on_success: never - on_failure: change - -script: 'curl -s https://raw.githubusercontent.com/atom/ci/master/build-package.sh | sh' - -git: - depth: 10 - -branches: - only: - - master diff --git a/README.md b/README.md index f87944b..65aeec1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # CSS language support in Atom -[![macOS Build Status](https://travis-ci.org/atom/language-css.svg?branch=master)](https://travis-ci.org/atom/language-css) [![Windows Build Status](https://ci.appveyor.com/api/projects/status/v8rvm88dxp73ko2y/branch/master?svg=true)](https://ci.appveyor.com/project/Atom/language-css/branch/master) [![Dependency Status](https://david-dm.org/atom/language-css.svg)](https://david-dm.org/atom/language-css) +![CI Status](https://github.com/atom/language-css/actions/workflows/main.yml/badge.svg) Adds syntax highlighting, completions, and snippets to CSS files in Atom. diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 7d07d05..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,29 +0,0 @@ -version: "{build}" - -image: Visual Studio 2015 - -platform: x64 - -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 diff --git a/package.json b/package.json index f7a036c..ab2970f 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,6 @@ "coffeelint": "^1.10.1" }, "dependencies": { - "tree-sitter-css": "^0.15.0" + "tree-sitter-css": "^0.19.0" } }