Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
ci: use pulsar in ci (#39)
Browse files Browse the repository at this point in the history
* ci: use pulsar in ci

* chore: use ppm on windows

* chore: only use one version of node per build

* chore: install npm packages on windows

* ci: hack to install deps on windows (#1)

---------

Co-authored-by: Tony Brix <[email protected]>
  • Loading branch information
scagood and UziTech authored Jul 11, 2023
1 parent da7cee9 commit d6587c5
Show file tree
Hide file tree
Showing 7 changed files with 517 additions and 33 deletions.
49 changes: 25 additions & 24 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,25 @@ on:

jobs:
Test:
name: ${{ matrix.os }} - Atom ${{ matrix.atom_channel }} - node ${{ matrix.node_version }}
name: ${{ matrix.os }} - Pulsar
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
atom_channel: [stable, beta]
node_version: ['lts/*']
include:
- os: ubuntu-latest
atom_channel: stable
node_version: '*'
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v3
- uses: UziTech/action-setup-atom@v3
with:
version: ${{ matrix.atom_channel }}
- uses: pulsar-edit/[email protected]
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- uses: volta-cli/action@v1.7.0
node-version: 'lts/*'
- uses: volta-cli/action@v4
- name: Install multiple Node versions
if: runner.os != 'Windows'
run: |
volta install node@10
echo "NODE_10=$(volta which node)" >> $GITHUB_ENV
echo "NODE_10_VERSION=$(node --version)" >> $GITHUB_ENV
volta install node@latest
echo "NODE_LATEST=$(volta which node)" >> $GITHUB_ENV
echo "NODE_LATEST_VERSION=$(node --version)" >> $GITHUB_ENV
Expand All @@ -42,9 +34,6 @@ jobs:
- name: Install multiple Node versions (Windows)
if: runner.os == 'Windows'
run: |
volta install node@10
echo "NODE_10=$(volta which node)" >> $env:GITHUB_ENV
echo "NODE_10_VERSION=$(node --version)" >> $env:GITHUB_ENV
volta install node@latest
echo "NODE_LATEST=$(volta which node)" >> $env:GITHUB_ENV
echo "NODE_LATEST_VERSION=$(node --version)" >> $env:GITHUB_ENV
Expand All @@ -67,14 +56,26 @@ jobs:
npm init --yes
npm install eslint@latest
cd ..
- name: Install dependencies (Windows)
if: runner.os == 'Windows'
run: |
ppm install
npm install
npx atom-package-deps ./windows-deps
- name: Install dependencies
if: runner.os != 'Windows'
run: |
pulsar --package install
pulsar --package install linter-eslint
npx atom-package-deps .
- name: List dependencies
run: |
apm install
apm install linter-eslint
# ./node_modules/.bin/atom-package-deps .
pulsar --package list --enabled --packages
- name: Run tests 👩🏾‍💻
run: npm run test
uses: coactions/setup-xvfb@v1
with:
run: pulsar --test spec

Lint:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -105,7 +106,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: UziTech/action-setup-atom@v3
- uses: pulsar-edit/action-pulsar-dependency@v3.3
- uses: actions/setup-node@v3
with:
node-version: "lts/*"
Expand Down
Loading

0 comments on commit d6587c5

Please sign in to comment.