Skip to content

Commit

Permalink
Merge pull request #153 from jsdoc-type-pratt-parser/update-actions
Browse files Browse the repository at this point in the history
ci: update all github actions
  • Loading branch information
simonseyock committed Mar 13, 2023
2 parents 5388718 + 9f82f8e commit 3a52035
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 27 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
name: Run coveralls
name: coverage

on:
- push
- pull_request
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev

jobs:
build:
coverage:
runs-on: ubuntu-latest

steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Use Node.js 16.x
uses: actions/setup-node@v1
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18.x

- name: Install dependencies
run: npm ci
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
name: Deploy
name: deploy
on:
push:
branches:
- main
jobs:
release:
name: Deploy
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- name: Dependencies
run: npm ci
- name: Build
Expand All @@ -26,9 +25,9 @@ jobs:
cp -r dist/* pages/lib/jsdoc-type-pratt-parser/
cp -r docs pages/
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.5
uses: JamesIves/github-pages-deploy-action@4.4.1
with:
branch: gh-pages
folder: pages
clean-exclude: |
index.html
index.html
11 changes: 6 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
name: Release
name: release
on:
push:
branches:
- main
- dev
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- name: Install dependencies
run: npm ci
- name: Release
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Test
name: test

on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev

jobs:
build:
test:

runs-on: ubuntu-latest

Expand Down

0 comments on commit 3a52035

Please sign in to comment.