-
Notifications
You must be signed in to change notification settings - Fork 3
ci: use pulsar in ci #39
Changes from all commits
4adbdfd
17913e1
8b4b936
810f723
c0d9c36
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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/action-pulsar-dependency@v3.3 | ||
| - 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/*" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.