Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try running the tests using Atom snap #57

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
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
35 changes: 23 additions & 12 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
matrix:
os:
- ubuntu-20.04
- macos-11.0
- windows-latest
# - macos-11.0
# - windows-latest
node_version:
- 12
node_arch:
Expand Down Expand Up @@ -81,22 +81,25 @@ jobs:
matrix:
os:
- ubuntu-20.04
- macos-11.0
- windows-latest
# - macos-11.0
# - windows-latest
node_version:
- 10
- 12
- 14
# - 12
# - 14
node_arch:
- x64
include:
- os: windows-2016
node_version: 12
node_arch: x86
- os: ubuntu-16.04
node_version: 12
- os: macos-10.15
# - os: windows-2016
# node_version: 12
# node_arch: x86
# - os: ubuntu-16.04
# node_version: 12
- os: ubuntu-latest
node_version: 12
snap: true
# - os: macos-10.15
# node_version: 12
steps:
- uses: actions/checkout@v2

Expand All @@ -115,6 +118,10 @@ jobs:
node-version: ${{ matrix.node_version }}
architecture: ${{ matrix.node_arch }}

- name: Setup Atom snap
if: ${{ contains(matrix.snap, 'true') }}
run: sudo snap install atom --channel stable/fix-65 --classic

- name: Install dependencies only
run: |
npm install --ignore-scripts
Expand All @@ -134,6 +141,10 @@ jobs:
- name: Run tests
run: npm run test

- name: Run tests using Atom
if: ${{ contains(matrix.snap, 'true') }}
run: atom --test spec

- name: Run benchmarks
if: ${{ !contains(matrix.node_arch, 'x86') }} # https://github.com/npm/npm-lifecycle/issues/54
run: npm run benchmark
Expand Down