Skip to content

Commit

Permalink
windows CI things
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeseda committed Sep 11, 2023
1 parent f893d1e commit b5e1c3d
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 21 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,32 @@ name: Node CI

on: [ push, pull_request ]

defaults:
run:
shell: bash

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [ 16, 18, 20 ]
os: [ windows-latest, ubuntu-latest, macOS-latest ]
node-version: [ 16 ]
# node-version: [ 16, 18, 20 ]
os: [ windows-latest ]
# os: [ windows-latest, ubuntu-latest, macOS-latest ]

steps:
- name: Check out repo
uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Run
run: npm it
- run: npm it
env:
CI: true

- name: Notify
uses: sarisia/actions-status-discord@v1
- uses: sarisia/actions-status-discord@v1
# Only fire alert once
if: github.ref == 'refs/heads/main' && failure()
with:
Expand All @@ -38,17 +42,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Check out repo
uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: 14
registry-url: https://registry.npmjs.org/

- name: Install
run: npm i
- run: npm i

- name: Publish @RC to npm
if: contains(github.ref, 'RC')
Expand All @@ -62,8 +63,7 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Notify
uses: sarisia/actions-status-discord@v1
- uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
Expand Down
28 changes: 28 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"reporter"
],
"scripts": {
"lint": "eslint \".\" --fix",
"lint:check": "eslint \".\"",
"lint": "eslint --fix '.'",
"lint:check": "eslint '.'",
"tap-arc:diff:-v": "npm run --silent tape:diff | ./index.js -v",
"tap-arc:diff": "npm run --silent tape:diff | ./index.js",
"tap-arc:empty": "npm run --silent tape:empty | ./index.js",
Expand All @@ -48,7 +48,7 @@
"tape:passing": "tape test/create-passing-tap.cjs",
"tape:simple": "tape test/create-simple-tap.cjs",
"tape:throws": "tape test/create-throws-tap.cjs",
"test": "npm run lint:check && tape test/index.cjs | ./index.js"
"test": "npm run lint:check && cross-env tape 'test/index.cjs' | ./index.js"
},
"dependencies": {
"chalk": "^5.3.0",
Expand All @@ -61,6 +61,7 @@
"devDependencies": {
"@architect/eslint-config": "^2.1.2",
"@types/node": "^16.18.50",
"cross-env": "^7.0.3",
"eslint": "^8.49.0",
"tape": "5.6.6"
},
Expand Down

0 comments on commit b5e1c3d

Please sign in to comment.