Skip to content

Commit

Permalink
Merge pull request #350 from SandroHc/ci
Browse files Browse the repository at this point in the history
CI: Build GitHub Pages bundle on-the-fly
  • Loading branch information
johanneswilm authored Nov 20, 2023
2 parents 6d3d6da + b5a23e1 commit 989c4d7
Show file tree
Hide file tree
Showing 10 changed files with 77 additions and 5,873 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Update docs
on:
push:
branches: ["main"]
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Build JS bundle
run: npm install
- name: Build site
uses: actions/jekyll-build-pages@v1
with:
source: ./docs
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v2

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
21 changes: 11 additions & 10 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
name: simple-datatables CI
name: Check lints

on: [push]
on: [pull_request, push]

jobs:
build:

lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- run: npm install
- run: npm run lint
- name: Install dependencies
run: npm install
- name: Lints
run: npm run lint
24 changes: 13 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
name: simple-datatables CI
name: Check tests

on: [push]
on: [pull_request, push]

jobs:
build:

test:
runs-on: ubuntu-latest

steps:
- run: sudo apt update && sudo apt install -y google-chrome-stable
- name: Checkout
uses: actions/checkout@v3
- name: Setup Chrome
run: sudo apt update && sudo apt install -y google-chrome-stable
- run: /usr/bin/google-chrome-stable --version
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- run: npm install
- name: Install dependencies
run: npm install
- uses: jamesmortensen/chromedriver-matcher-action@v1
- run: npm test
- name: Tests
run: npm test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/dist/
/docs/demos/dist/
node_modules/
tests/qunit.css
package-lock.json
Expand Down
30 changes: 0 additions & 30 deletions docs/demos/dist/css/column_filter.css

This file was deleted.

206 changes: 0 additions & 206 deletions docs/demos/dist/css/editing.css

This file was deleted.

Loading

0 comments on commit 989c4d7

Please sign in to comment.