Skip to content

Commit

Permalink
Update Actions and package.json keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
willeastcott committed Feb 4, 2024
1 parent 2380567 commit ae11d0f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 17 deletions.
46 changes: 31 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: CI

on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
Expand All @@ -10,44 +11,59 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js 16.x
uses: actions/[email protected]
uses: actions/checkout@v4

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

- name: Install dependencies
run: npm ci
run: npm clean-install --progress=false --no-fund

- name: Build PCUI Graph
run: npm run build

lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js 16.x
uses: actions/[email protected]
uses: actions/checkout@v4

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

- name: Install dependencies
run: npm ci
run: npm clean-install --progress=false --no-fund

- name: Run ESLint
run: npm run lint

lint-styles:
name: Lint Styles
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js 16.x
uses: actions/[email protected]
uses: actions/checkout@v4

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

- name: Install dependencies
run: npm ci
run: npm clean-install --progress=false --no-fund

- name: Run Stylelint
run: npm run lint:styles
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"homepage": "https://github.com/playcanvas/pcui-graph",
"description": "A PCUI plugin for creating node-based graphs",
"keywords": [
"graph",
"nodes",
"components",
"css",
"dom",
"graph",
"html",
"javascript",
"nodes",
"pcui",
"playcanvas",
"react",
Expand Down

0 comments on commit ae11d0f

Please sign in to comment.