Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): github CI updates #331

Merged
merged 6 commits into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 34 additions & 12 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,61 +11,82 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

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

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

- name: Build PCUI
run: npm run build

test:
name: Unit Tests
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

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

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

- name: Build PCUI
run: npm run build:es6

- name: Run unit tests
run: npm test

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

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Node.js 18.x
uses: actions/setup-node@v2.1.4
uses: actions/setup-node@v3
with:
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
uses: actions/checkout@v4

- name: Setup Node.js 18.x
uses: actions/setup-node@v2.1.4
uses: actions/setup-node@v3
with:
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