Skip to content

Commit

Permalink
Merge pull request #2 from benonymus/bump-dugite
Browse files Browse the repository at this point in the history
Bump dugite
  • Loading branch information
mauricioszabo authored Dec 1, 2022
2 parents 96bbe00 + 4e03da6 commit 791a45d
Show file tree
Hide file tree
Showing 3 changed files with 560 additions and 860 deletions.
108 changes: 23 additions & 85 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,92 +1,30 @@
name: ci
name: CI

on:
pull_request:
push:
branches:
- master
- push
- pull_request

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# See https://github.com/pulsar-edit/pulsar/pull/46 for why we set this env variable.

jobs:
tests:
name: tests
test:
name: Test
strategy:
matrix:
os: [ubuntu-18.04, macos-latest, windows-2019]
channel: [beta, nightly]
os: [ubuntu-20.04, macos-latest, windows-2019]
fail-fast: false
runs-on: ${{ matrix.os }}
env:
ATOM_GITHUB_BABEL_ENV: coverage
MOCHA_TIMEOUT: 60000
UNTIL_TIMEOUT: 30000
steps:
- uses: actions/checkout@v1
- name: install Atom
uses: UziTech/action-setup-atom@v1
with:
channel: ${{ matrix.channel }}

- name: install dependencies
run: apm ci

- name: configure git
shell: bash
run: |
git config --global user.name Hubot
git config --global user.email hubot@github.com
- name: Run the tests
if: ${{ !contains(matrix.os, 'windows') }}
run: atom --test test

- name: Run the tests on Windows
if: ${{ contains(matrix.os, 'windows') }}
continue-on-error: true # due to https://github.com/atom/github/pull/2459#issuecomment-624725972
run: atom --test test

- name: report code coverage
shell: bash
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
SYSTEM_PULLREQUEST_PULLREQUESTNUMBER: ${{ github.event.number }}
SYSTEM_PULLREQUEST_SOURCEBRANCH: ${{ github.head_ref }}
BUILD_SOURCEBRANCH: ${{ github.event.ref }}
OS_NAME: ${{ matrix.os }}
run: |
npm run report:coverage
COVERAGE_NAME=$([[ "${OS_NAME}" == macos* ]] && echo "macOS" || echo "Linux")
bash <(curl -s https://codecov.io/bash) \
-n "${COVERAGE_NAME}" \
-P "${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER:-}" \
-B "${SYSTEM_PULLREQUEST_SOURCEBRANCH:-${BUILD_SOURCEBRANCH}}"
if: |
!contains(matrix.os, 'windows') &&
(success() || failure())
lint:
name: lint
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: install Atom
uses: UziTech/action-setup-atom@v1
with:
channel: nightly
- name: install dependencies
run: apm ci
- name: lint
run: npm run lint

snapshot-tests:
name: snapshot tests
runs-on: ubuntu-18.04
env:
ATOM_GITHUB_BABEL_ENV: coverage
ATOM_GITHUB_TEST_SUITE: snapshot
steps:
- uses: actions/checkout@v1
- name: install Atom
uses: UziTech/action-setup-atom@v1
with:
channel: nightly
- name: install dependencies
run: apm ci
- name: run snapshot tests
run: atom --test test/
- name: Checkout the Latest Package Code
uses: actions/checkout@v3
- name: Setup Pulsar Editor
uses: pulsar-edit/action-pulsar-dependency@v2.1
with:
package-to-test: "github"
- name: Run the headless Pulsar Tests
uses: GabrielBB/xvfb-action@v1
with:
run: yarn start --test spec
working-directory: ./pulsar
Loading

0 comments on commit 791a45d

Please sign in to comment.