Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
teenageknight committed Jul 30, 2024
1 parent dbf6f56 commit b24efbe
Show file tree
Hide file tree
Showing 16 changed files with 779 additions and 232 deletions.
39 changes: 2 additions & 37 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,6 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: app/package-lock.json
- name: Install dependencies
run: cd app/ && npm ci
- name: Build
run: cd app/ && npm run build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload dist folder
path: "./app/dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
run-ci:
uses: ./.github/workflows/CI.yml
6 changes: 5 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: CI
on: [push]
on:
push:
branches:
- "*"
workflow_dispatch:
jobs:
lint-and-type:
runs-on: ubuntu-latest
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/Deploy-Firebase-Function.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
on:
workflow_call:
inputs:
config-path:
required: true
type: string
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: echo 'hello world'
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ dist-ssr
/.firebase
firebase-debug.log

.github/workflows/deploy-github-pages.yml
.github/workflows/deploy-github-pages.yml

coverage/
Loading

0 comments on commit b24efbe

Please sign in to comment.