This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
7 changed files
with
517 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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/*" | ||
|
Oops, something went wrong.