Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

develop-firebase -> main #64

Merged
merged 83 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
cc5677e
build(flake): add flake.nix
21CSM Sep 21, 2024
01ea281
ci: add workflows for building with flakes
21CSM Sep 21, 2024
f85d680
Merge pull request #26 from 21CSM/7-svelte-flake
21CSM Sep 21, 2024
6bfea4f
feat: add sveltekit/skeleton bare bones project
21CSM Sep 21, 2024
257eaa2
Merge pull request #27 from 21CSM/15-local-app-sveltekit
21CSM Sep 21, 2024
a899379
ci: add unit testing to build.yml
21CSM Sep 21, 2024
68fd158
ci: add step to install node modules
21CSM Sep 21, 2024
dfb71fc
Merge pull request #28 from 21CSM/vitest-ci
21CSM Sep 21, 2024
bf7e20f
ci: add integration testing to build.yml
21CSM Sep 21, 2024
f73ed7b
ci: add command to install playwright browsers
21CSM Sep 21, 2024
f959adc
build(flake): add playwright-web-flake for integration testing
21CSM Sep 21, 2024
0ed9f11
Merge pull request #29 from 21CSM/playwright-ci
21CSM Sep 21, 2024
ac6fd35
build(flake): add check for Playwright browsers
21CSM Sep 21, 2024
6895a6c
Merge pull request #30 from 21CSM/playwright-ci
21CSM Sep 21, 2024
a2a9e5b
feat: add firebase config
21CSM Sep 21, 2024
8a6cc54
build: add firebase-tools
21CSM Sep 21, 2024
0088ddb
ci(firebase): add firebase deployment files
21CSM Sep 21, 2024
a26d04f
refactor: remove dummy test
21CSM Sep 21, 2024
4f53a88
ci: add deploy-preview.yml
21CSM Sep 21, 2024
e9215ef
Merge pull request #31 from 21CSM/firebase-config
21CSM Sep 21, 2024
7159d3b
feat: preview test
21CSM Sep 21, 2024
74a2c68
ci(firebase): add checkout action so firebase.json is found
21CSM Sep 21, 2024
4d37880
Merge pull request #32 from 21CSM/preview-test
21CSM Sep 21, 2024
d3f87c6
feat: previous test cont.
21CSM Sep 21, 2024
492c5e0
ci(firebase): add channelId field
21CSM Sep 21, 2024
05d4b76
Merge pull request #33 from 21CSM/preview-test
21CSM Sep 21, 2024
cabad15
feat: preview test after channelId update
21CSM Sep 21, 2024
5c9e05f
ci(firebase): set up build directory
21CSM Sep 21, 2024
5d16084
Merge pull request #34 from 21CSM/preview-test
21CSM Sep 21, 2024
0764980
feat: preview test after set up build directory change
21CSM Sep 21, 2024
8d037dc
ci(firebase): simplify firebase preview
21CSM Sep 21, 2024
d59c2da
ci(firebase): segregate out build and deploy-preview jobs
21CSM Sep 21, 2024
741de08
ci(firebase): always run deploy-preview on PRs
21CSM Sep 21, 2024
58b55a6
Merge pull request #35 from 21CSM/preview-test
21CSM Sep 21, 2024
7c42cd3
ci(firebase): rename build.yml to deploy-preview.yml
21CSM Sep 21, 2024
cfef52f
Merge pull request #36 from 21CSM/preview-test
21CSM Sep 21, 2024
882efdb
ci: add build.yml for running ci on pushes
21CSM Sep 21, 2024
80ca821
Merge pull request #37 from 21CSM/build-ci
21CSM Sep 21, 2024
d3bed17
ci: update dependabot.yml to fetch npm updates
21CSM Sep 24, 2024
2c7df73
Merge pull request #38 from 21CSM/update-dependabot
21CSM Sep 24, 2024
142066a
ci: quick fix for dependabot with firebase
21CSM Sep 24, 2024
1ae2f99
Merge pull request #48 from 21CSM/update-dependabot
21CSM Sep 24, 2024
36fb7aa
refactor: segregate firebase config
21CSM Sep 24, 2024
3cadaea
feat: add all firebase modules
21CSM Sep 24, 2024
3c9f7ad
Merge pull request #49 from 21CSM/firebase-segregation
21CSM Sep 24, 2024
6e24913
ci: add codecov
21CSM Sep 24, 2024
6c66a8b
Merge pull request #50 from 21CSM/codecov
21CSM Sep 24, 2024
dd38921
ci: add codecov to build.yml
21CSM Sep 24, 2024
0f5cd7d
Merge pull request #51 from 21CSM/codecov
21CSM Sep 24, 2024
3c49524
docs: add badges
21CSM Sep 24, 2024
5af6cc2
Merge pull request #52 from 21CSM/update-readme
21CSM Sep 24, 2024
37eb4ff
build(flake): update flake.lock
21CSM Sep 26, 2024
d61e56d
Merge pull request #53 from 21CSM/update-flake-lock
21CSM Sep 26, 2024
4276df9
feat: add user store
21CSM Sep 26, 2024
2e400e3
feat: add login screen
21CSM Sep 26, 2024
43a4b45
feat: add test greeting
21CSM Sep 26, 2024
4130c6d
build(flake): update flake.lock
github-actions[bot] Sep 29, 2024
f9b5e90
Merge pull request #54 from 21CSM/update_flake_lock_action
21CSM Sep 29, 2024
1cd8300
build(deps-dev): bump eslint-plugin-svelte from 2.44.0 to 2.44.1
dependabot[bot] Sep 30, 2024
4f9a3fe
build(deps-dev): bump svelte-check from 4.0.2 to 4.0.4
dependabot[bot] Sep 30, 2024
be3cc55
build(deps-dev): bump vite from 5.4.7 to 5.4.8
dependabot[bot] Sep 30, 2024
b44adf4
build(deps-dev): bump prettier-plugin-svelte from 3.2.6 to 3.2.7
dependabot[bot] Sep 30, 2024
683f28c
Merge pull request #55 from 21CSM/dependabot/npm_and_yarn/eslint-plug…
21CSM Sep 30, 2024
7820e9a
Merge pull request #56 from 21CSM/dependabot/npm_and_yarn/svelte-chec…
21CSM Sep 30, 2024
aeb4041
Merge pull request #57 from 21CSM/dependabot/npm_and_yarn/vite-5.4.8
21CSM Sep 30, 2024
ff11585
Merge branch 'develop-firebase' into dependabot/npm_and_yarn/prettier…
21CSM Sep 30, 2024
030c2ce
Merge pull request #59 from 21CSM/dependabot/npm_and_yarn/prettier-pl…
21CSM Sep 30, 2024
86a2880
build(deps-dev): bump @sveltejs/kit from 2.5.28 to 2.6.1
dependabot[bot] Sep 30, 2024
6230dec
Merge pull request #58 from 21CSM/dependabot/npm_and_yarn/sveltejs/ki…
21CSM Sep 30, 2024
aa1d6c3
Merge remote-tracking branch 'origin/develop-firebase' into 39-user-auth
21CSM Oct 1, 2024
b44a3cc
fix(tests): modify login form to fix integration test
21CSM Oct 1, 2024
af0944b
test: add tests for login page
21CSM Oct 1, 2024
e596dbc
refactor: fix formatting
21CSM Oct 1, 2024
7a3628e
Merge pull request #60 from 21CSM/39-user-auth
21CSM Oct 1, 2024
2a57c0e
feat: add score viewer
21CSM Oct 1, 2024
ba6610d
test: fix app.test.ts
21CSM Oct 1, 2024
ce3b221
test: add tests for storage.ts
21CSM Oct 1, 2024
4c7fbb4
feat(viewer): add beethoven example
21CSM Oct 1, 2024
7e2312f
Merge pull request #61 from 21CSM/24-visualize-mei-files
21CSM Oct 1, 2024
0cb5aab
ci(firebase): modify workflow so that preview only deploys on src fol…
21CSM Oct 2, 2024
186bc8c
Merge pull request #62 from 21CSM/47-deploy-preview-subset
21CSM Oct 2, 2024
3ee7371
ci: add production deploy
21CSM Oct 2, 2024
b8a753d
Merge pull request #63 from 21CSM/6-productionized-web-page
21CSM Oct 2, 2024
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
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "ars-antiqua"
}
}
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "ci"
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
versioning-strategy: auto
commit-message:
prefix: "build"
include: "scope"
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build
on:
push:
branches: [develop-firebase]

jobs:
flake-health-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check Flake Health
uses: DeterminateSystems/flake-checker-action@v9

build:
runs-on: ubuntu-latest
needs: flake-health-check
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v14
- name: Run Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Run Nix Flake Checks
run: nix flake check
- name: Install Dependencies
run: nix develop -c pnpm install
- name: Run Unit Tests
run: nix develop -c pnpm run test:unit:coverage
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Run Integration Tests
run: nix develop -c pnpm run test:integration
- name: Build Project
run: nix develop -c pnpm run build
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: build
80 changes: 80 additions & 0 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Deploy Preview
on:
pull_request:
branches: [develop-firebase, main]
workflow_dispatch:

jobs:
flake-health-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check Flake Health
uses: DeterminateSystems/flake-checker-action@v9

build:
runs-on: ubuntu-latest
needs: flake-health-check
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v14
- name: Run Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Run Nix Flake Checks
run: nix flake check
- name: Install Dependencies
run: nix develop -c pnpm install
- name: Run Unit Tests
run: nix develop -c pnpm run test:unit:coverage
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Run Integration Tests
run: nix develop -c pnpm run test:integration
- name: Build Project
run: nix develop -c pnpm run build
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: build

changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
src: ${{ steps.filter.outputs.src }}
steps:
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
src:
- 'src/**'

deploy-preview:
needs: [build, changes]
runs-on: ubuntu-latest
if: ${{ needs.changes.outputs.src == 'true' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download Build Artifacts
uses: actions/download-artifact@v4
with:
name: build
path: build
- name: Deploy to Firebase Preview
if: github.actor != 'dependabot[bot]'
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_ARS_ANTIQUA }}
projectId: ars-antiqua
channelId: preview
80 changes: 80 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Build
on:
push:
branches: [main]

jobs:
flake-health-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check Flake Health
uses: DeterminateSystems/flake-checker-action@v9

build:
runs-on: ubuntu-latest
needs: flake-health-check
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v14
- name: Run Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Run Nix Flake Checks
run: nix flake check
- name: Install Dependencies
run: nix develop -c pnpm install
- name: Run Unit Tests
run: nix develop -c pnpm run test:unit:coverage
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Run Integration Tests
run: nix develop -c pnpm run test:integration
- name: Build Project
run: nix develop -c pnpm run build
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: build

changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
src: ${{ steps.filter.outputs.src }}
steps:
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
src:
- 'src/**'

deploy-preview:
needs: [build, changes]
runs-on: ubuntu-latest
if: ${{ needs.changes.outputs.src == 'true' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download Build Artifacts
uses: actions/download-artifact@v4
with:
name: build
path: build
- name: Deploy to Firebase
if: github.actor != 'dependabot[bot]'
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_ARS_ANTIQUA }}
projectId: ars-antiqua
channelId: live

18 changes: 0 additions & 18 deletions .github/workflows/github-actions-demo.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/update-flake-lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Update flake.lock

on:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:

jobs:
lockfile:
name: Run update
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v14
- name: Run Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Check Flake Health
uses: DeterminateSystems/flake-checker-action@v9
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v24
with:
commit-msg: "build(flake): update flake.lock"
pr-assignees: 21CSM
pr-reviewers: 21CSM
pr-title: "build(flake): update flake.lock"

44 changes: 43 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,44 @@
# Nix
result
result-*

# direnv
.direnv/

# macOS
.DS_Store
.DS_Store
Thumbs.db

# Env
.env
.env.*
!.env.example
!.env.test

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# Node
node_modules/
dist
dist-ssr
*.local
.vite/
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
.output
.vercel
/.svelte-kit
/build
test-results/
coverage/

# Firebase
.firebase/
firebase-debug.log
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
16 changes: 16 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Package Managers
package-lock.json
pnpm-lock.yaml
yarn.lock

# Build
flake.lock

# CI
.github/

# Editor
.vscode/

# Documentation
README.md
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
Loading