Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
29 changes: 25 additions & 4 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,59 +4,80 @@
push:
branches:
- main
pull_request:
branches:
- main

defaults:
run:
working-directory: ./web

jobs:
ci:
name: Build & Deploy
validate:
name: Validate
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: [20]

steps:
- name: Checkout 🛎
uses: actions/checkout@master

- uses: pnpm/action-setup@v6
name: Install pnpm
with:
version: 10

- name: Install dependencies 📦
run: pnpm install

- name: Run linter 👀
run: pnpm lint

- name: Run tests 🧪
run: pnpm test

- name: Debug 🐛
run: echo GITHUB_SHA=${GITHUB_SHA}
- name: Build 🏗️
run: mv .env.production .env && echo GITHUB_SHA=${GITHUB_SHA} >> .env && pnpm run generate

deploy:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Comment on lines 17 to 46
name: Deploy
needs: validate
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest

steps:
- name: Checkout 🛎
uses: actions/checkout@master

- uses: pnpm/action-setup@v6
name: Install pnpm
with:
version: 10

- name: Install dependencies 📦
run: pnpm install

- name: Build 🏗️
run: mv .env.production .env && echo GITHUB_SHA=${GITHUB_SHA} >> .env && pnpm run generate

- name: Cloudflare Deploy 🚀
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: httpsms
directory: web/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

- name: Firebase Deploy 🚀
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
channelId: live
entryPoint: "./web"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_HTTPSMS_86C51 }}"
projectId: httpsms-86c51

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
3 changes: 2 additions & 1 deletion web/pages/bulk-messages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ export default Vue.extend({
.clickable-row {
cursor: pointer;
}

.clickable-row:hover {
background-color: rgba(0, 0, 0, 0.04);
background-color: rgb(0 0 0 / 4%);
}
</style>
Loading