From 22ae3d3e3fc448c06226f64f1afc6e2a5f9e37b8 Mon Sep 17 00:00:00 2001 From: aminya Date: Mon, 16 Mar 2020 16:03:20 -0500 Subject: [PATCH] Use GithubActions instead of Travis/Appveyor Fix arch Install latest eslint Adding postinstall.js Add npm/apm install Add typescript to deps Using latest node + using ci only Fix space before OS Fix syntax up fix atom-channel Update ci.yml Disable run tests Add apm install ink and language-julia Simplify versions Remove apm install from Lint latest atom-setup UziTech/action-setup-atom@1 UziTech/action-setup-atom@v1 julia_version --- .github/workflows/ci.yml | 64 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 52 -------------------------------- appveyor.yml | 24 --------------- package.json | 9 +++--- 4 files changed, 69 insertions(+), 80 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml delete mode 100644 appveyor.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..7abfa0f8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,64 @@ +name: CI +on: + - push + - pull_request + +jobs: + Test: + if: "!contains(github.event.head_commit.message, '[skip ci]')" + name: Julia ${{ matrix.julia_version }} - ${{ matrix.os }} - ${{ matrix.arch }} - Atom ${{ matrix.atom_channel }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + atom_channel: [stable] # beta + julia_version: ["1", "nightly"] + arch: ["x64"] + steps: + - uses: actions/checkout@v2 + - uses: UziTech/action-setup-atom@v1 + with: + channel: ${{ matrix.atom_channel }} + - uses: julia-actions/setup-julia@latest + with: + version: ${{ matrix.julia_version }} + arch: ${{ matrix.arch }} + - name: Versions + run: | + julia -v + apm -v + - name: Install APM dependencies + run: | + apm ci # uses locked module. use `apm install` for non-locked + apm install ink language-julia + node script/postinstall.js + - name: Julia CI + run: julia -e 'include("ci/packages.jl")' + shell: bash +# - name: Run tests 👩🏾‍💻 +# run: atom --test spec + + Lint: + if: "!contains(github.event.head_commit.message, '[skip ci]')" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "13.x" + - name: Install NPM dependencies + run: | + npm ci # uses locked module. use `npm install` for non-locked + - name: Lint ✨ + run: npm run lint + + 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 42d74413..00000000 --- a/.travis.yml +++ /dev/null @@ -1,52 +0,0 @@ -language: julia - -julia: - - 1 - - nightly - -env: - global: - - APM_TEST_PACKAGES="ink language-julia" - - ATOM_LINT_WITH_BUNDLED_NODE="true" - - matrix: - - "" - - ATOMJL=master - -os: - - linux - -matrix: - include: - # # Sanity check for OS X - # - os: osx - # julia: 1 - # env: ATOMJL=master - # Sanity check for Atom Beta - - os: linux - julia: 1 - env: ATOM_CHANNEL=beta - allow_failures: - - julia: nightly - - env: ATOM_CHANNEL=beta - -script: - - julia ci/packages.jl - - curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh - - chmod u+x build-package.sh - - ./build-package.sh - -dist: xenial -addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-6 - - build-essential - - fakeroot - - git - - libsecret-1-dev - -notifications: - email: false diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 63454715..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,24 +0,0 @@ -### Project specific config ### -environment: - APM_TEST_PACKAGES: "ink language-julia" - ATOM_LINT_WITH_BUNDLED_NODE: "true" - - matrix: - - ATOM_CHANNEL: stable - - ATOM_CHANNEL: beta - -### Generic setup follows ### -build_script: - - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/atom/ci/master/build-package.ps1')) - - julia: ci/packages.jl - -branches: - only: - - master - -version: "{build}" -platform: x64 -clone_depth: 10 -skip_tags: true -test: off -deploy: off diff --git a/package.json b/package.json index dbac98d5..9cd31c1f 100644 --- a/package.json +++ b/package.json @@ -25,18 +25,20 @@ "atom": ">=1.39.0 <2.0.0" }, "dependencies": { - "atom-package-deps": "*", + "atom-package-deps": "latest", "atom-space-pen-views": "^2.0.0", "etch": "^0.14", "fuzzaldrin-plus": "^0.6.0", "node-pty-prebuilt-multiarch": "0.9.0", "object-hash": "^2.0.3", - "physical-cpu-count": "*", + "physical-cpu-count": "latest", "semver": "^6.3.0", "ssh2": "^0.8.4", - "underscore-plus": "*" + "underscore-plus": "latest" }, "devDependencies": { + "typescript": "^3.8.3", + "coffeescript": "^2.5.1", "@types/atom": "^1.40.1", "@types/fuzzaldrin-plus": "^0.6.0", "@types/object-hash": "^1.3.1", @@ -47,7 +49,6 @@ "@typescript-eslint/eslint-plugin": "latest", "@typescript-eslint/parser": "latest", "babel-eslint": "latest", - "coffeescript": "latest", "eslint-plugin-coffee": "latest", "eslint-plugin-json": "latest", "eslint-plugin-only-warn": "latest",