Skip to content

Commit bbf2936

Browse files
committed
Add actionlint
1 parent cf6c2dd commit bbf2936

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

.github/workflows/actionlint.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Lint GitHub Actions workflows
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- '*'
9+
pull_request:
10+
branches:
11+
- main
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
actionlint:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Download actionlint
22+
id: get_actionlint
23+
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
24+
shell: bash
25+
- name: Check workflow files
26+
run: ${{ steps.get_actionlint.outputs.executable }} -color
27+
shell: bash

.github/workflows/test-pg.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ jobs:
9494

9595
- run: npm run test-ci
9696
env:
97-
DATABASE_URL: "postgres://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres"
98-
DATABASE_TEST_URL: "postgres://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres"
97+
DATABASE_URL: "postgres://postgres:postgres@localhost:${{ job.services.postgres.ports['5432'] }}/postgres"
98+
DATABASE_TEST_URL: "postgres://postgres:postgres@localhost:${{ job.services.postgres.ports['5432'] }}/postgres"
9999
PGUSER: postgres
100100
PGPASSWORD: postgres
101101
PGDATABASE: postgres
102-
PGPORT: ${{ job.services.postgres.ports[5432] }}
102+
PGPORT: ${{ job.services.postgres.ports['5432'] }}

0 commit comments

Comments
 (0)