Skip to content
Merged
Show file tree
Hide file tree
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
41 changes: 41 additions & 0 deletions .github/workflows/docs_validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Docs Validation

on:
pull_request:
branches:
- main
paths:
- 'docs/**'
- 'js/**'
- 'less/**'
- 'sass/**'
- 'Gruntfile.js'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/docs_validation.yml'

permissions:
contents: read

concurrency:
group: docs-validation-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build-docs:
runs-on: ubuntu-latest
name: Build docs and check links
steps:
- uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '20.19'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build docs site
run: npm run docs:build
5 changes: 4 additions & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: lint
on: [push, pull_request]
on:
push:
branches:
- main
jobs:
run-lint:
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Playwright Tests
on: [push, pull_request]
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/publish_npm_release.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
name: Publish npm - Release

on:
push:
tags:
- 'v*.*.*'
release:
types: [published]

permissions:
contents: read

jobs:
publish:
if: startsWith(github.event.release.tag_name, 'v')
runs-on: ubuntu-latest
name: Publish crestapps-bootstrap-select
steps:
- name: Get the version
id: get_version
run: |
VERSION="${GITHUB_REF_NAME#v}"
VERSION="${{ github.event.release.tag_name }}"
VERSION="${VERSION#v}"
echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
shell: bash

Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/publishing.yml

This file was deleted.

58 changes: 58 additions & 0 deletions .github/workflows/pull_request_validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Pull Request Validation

on:
pull_request:
branches:
- main

permissions:
contents: read

concurrency:
group: pr-validation-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['20.19', '22']
name: Lint (Node ${{ matrix.node }})
steps:
- uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run lint
run: npm run lint

playwright:
runs-on: ubuntu-latest
name: Playwright
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '20.19'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Install Playwright browsers
run: npx playwright install --with-deps chromium

- name: Run Playwright tests
run: npm test
2 changes: 1 addition & 1 deletion docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const config = {
onBrokenLinks: 'throw',
markdown: {
hooks: {
onBrokenMarkdownLinks: 'warn'
onBrokenMarkdownLinks: 'throw'
}
},

Expand Down
Loading