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
1 change: 1 addition & 0 deletions .github/workflows/action-lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: GitHub Actions linting

on:
workflow_dispatch:
push:
branches:
- develop
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Build Docker Image
run: docker build .
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/check-changes-to-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,19 @@ jobs:
- name: Get PR Number
id: get-pr-number
run: |
PR_NUMBER=$(echo "${{ github.ref }}" | awk 'BEGIN { FS = "/" } ; { print $3 }')
echo "pr-number=${PR_NUMBER}" >> $GITHUB_OUTPUT
PR_NUMBER=$(echo "${GITHUB_REF}" | awk 'BEGIN { FS = "/" } ; { print $3 }')
echo "pr-number=${PR_NUMBER}" >> "$GITHUB_OUTPUT"
- name: Comment when dummy.txt changes
uses: actions/github-script@v7
env:
PR_NUMBER: ${{ steps.get-pr-number.outputs.pr-number }}
REPO: ${{ github.repository }}
with:
script: |
const filename = ".env.example"
const filenameSha256 = await sha256(filename)
const diffURL = "https://github.com/${{ github.repository }}/pull/${{ steps.get-pr-number.outputs.pr-number }}/files#diff-" + filenameSha256
const docsURL = "https://github.com/${{ github.repository }}/wiki/Setting-Environment-Variables"
const diffURL = `https://github.com/${process.env.REPO}/pull/${process.env.PR_NUMBER}/files#diff-${filenameSha256}`
const docsURL = `https://github.com/${process.env.REPO}/wiki/Setting-Environment-Variables`
const commentBody = `⚠️ It looks like [${filename}](${diffURL}) has changed. Remember to update the [Setting Environment Variables](${docsURL}) article accordingly.`
const listComments = await github.rest.issues.listComments({
...context.repo,
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout Repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install modules
run: npm install
- name: Run ESLint
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/run-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-sql-queries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
image: postgres:17.5
ports:
- 5432:5432
options: >-
Expand All @@ -28,6 +28,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Wait for PostgreSQL to be ready
run: |
until pg_isready -h localhost -p 5432; do
Expand Down
Loading