Skip to content

Commit

Permalink
Update CI workflows (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliefoxtwo authored Oct 1, 2023
1 parent ab7c1e6 commit d69b9f7
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 18 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,35 @@ jobs:
build_on_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: install dependencies
run: npm install
run: npm ci
- name: build
run: npm run make

build_on_mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: install dependencies
run: npm install
run: npm ci
- name: build
run: npm run make

build_on_win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: install dependencies
run: npm install
run: npm ci
- name: build
run: npm run make
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
publish_on_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: install dependencies
run: npm install
run: npm ci
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -22,12 +22,12 @@ jobs:
publish_on_mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: install dependencies
run: npm install
run: npm ci
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -36,12 +36,12 @@ jobs:
publish_on_win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: install dependencies
run: npm install
run: npm ci
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Validate

on: [push, pull_request]

jobs:
eslint:
runs-on: ubuntu-latest

name: eslint
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: npm ci # install dependencies

- name: Run eslint
run: npm run lint # run eslint
prettier:
runs-on: ubuntu-latest

name: prettier
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: npm ci # install dependencies

- name: Run prettier
run: npm run prettier # run prettier

0 comments on commit d69b9f7

Please sign in to comment.