Skip to content

Commit

Permalink
Build bbdevdays-learn-skyux
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhwhite committed Jun 3, 2024
1 parent e40ab72 commit f05c30f
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: ci
on:
pull_request:
push:
branches:
- main
workflow_dispatch:

permissions:
actions: read
contents: read
id-token: write
pages: write

concurrency:
group: 'ci'
cancel-in-progress: false

jobs:
ci:
strategy:
matrix:
branch:
- 01-create-project
- 02-create-http-service
- 03-create-view
- 04-create-form
- 05-data-grid
- 06-action-hub
- github-pages
name: '${{ matrix.branch }} branch'
runs-on: ubuntu-latest
environment:
name: ${{ matrix.branch == 'github-pages' && matrix.branch || null }}
url: ${{ matrix.branch == 'github-pages' && steps.deployment.outputs.page_url || null }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install
run: npm ci
- name: Lint
run: npm run lint
- name: Build
run: |
npm run build -- --base-href=/${GITHUB_REPOSITORY#*/}/
- name: Test
run: |
npm test -- --browsers=ChromeHeadless --no-watch --no-progress
- name: Upload GitHub Pages artifact
if: matrix.branch == 'github-pages'
uses: actions/upload-pages-artifact@v3
with:
path: dist/bark-back/browser
- name: Deploy to GitHub Pages
if: matrix.branch == 'github-pages'
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit f05c30f

Please sign in to comment.