-
-
Notifications
You must be signed in to change notification settings - Fork 2
86 lines (80 loc) · 2.5 KB
/
pr.yml
File metadata and controls
86 lines (80 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: PR
on: pull_request
concurrency:
group: pr-${{ github.ref }}
cancel-in-progress: true
permissions:
packages: read
jobs:
superlinter:
name: Lint bash, docker, markdown, and yaml
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- name: Lint codebase
uses: docker://github/super-linter:v3.8.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: true
VALIDATE_BASH: true
VALIDATE_DOCKERFILE: true
VALIDATE_MD: true
VALIDATE_YAML: true
verify-changelog:
name: Verify CHANGELOG is valid
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- name: Verify CHANGELOG
uses: docker://ghcr.io/ponylang/changelog-tool:release
with:
args: changelog-tool verify
vs-release-ponyc-linux:
name: Test against recent ponyc release on Linux
runs-on: ubuntu-latest
container:
image: ghcr.io/ponylang/shared-docker-ci-standard-builder-with-libressl-4.2.0:release
services:
postgres:
image: postgres:14.5
env:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_HOST_AUTH_METHOD: scram-sha-256
POSTGRES_INITDB_ARGS: "--auth-host=scram-sha-256"
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
postgres-ssl:
image: ghcr.io/ponylang/postgres-ci-pg-ssl:latest
env:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_HOST_AUTH_METHOD: scram-sha-256
POSTGRES_INITDB_ARGS: "--auth-host=scram-sha-256"
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
- name: Unit tests
run: make unit-tests config=debug ssl=libressl
- name: Integration tests
run: make integration-tests config=debug ssl=libressl
env:
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_SSL_HOST: postgres-ssl
POSTGRES_SSL_PORT: 5432
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DATABASE: postgres
POSTGRES_MD5_USERNAME: md5user
POSTGRES_MD5_PASSWORD: md5pass