Skip to content

Commit

Permalink
adds test pipeline
Browse files Browse the repository at this point in the history
updates name

adds data for proof of concept

adds deploy to github pages

fixes deploy script

fixes upload-pages-artifact path

updates workflows

updates path

updates format

updates workflows

updates checkout action config
  • Loading branch information
ivoputzer committed Sep 28, 2023
1 parent 685a657 commit 2a30cbb
Show file tree
Hide file tree
Showing 11 changed files with 5,923 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy to GitHub Pages
on:
push:
branches: [main] # todo: this should somehow be triggered only if test passes, which is another workflow though... this could just be a continuation of a previous job!
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# todo: right about here at this point there should be some build steps to update caches, and build www api structure
- uses: actions/configure-pages@v3
- uses: actions/upload-pages-artifact@v2
with:
path: 'www' # fixme: rename to dist or something else
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- id: deployment
uses: actions/deploy-pages@v2
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Test
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3 # https://github.com/actions/checkout
- uses: actions/setup-node@v3 # https://github.com/actions/setup-node
with:
check-latest: true
node-version-file: '.node-version'
cache: 'npm'
- run: npm ci
- run: npm test
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.cache
.npmrc
.DS_Store
*todo.md
node_modules
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.7.0
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
finance.codin.xyz
Loading

0 comments on commit 2a30cbb

Please sign in to comment.