-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (75 loc) · 2.22 KB
/
check-pull-request.yaml
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
87
88
89
90
91
92
#
# DO NOT EDIT!
# This file was autogenerated by Carson.
# Changes may cause incorrect behavior and will be lost when the file is regenerated.
#
# Run `npx carson update workspace` to regenerate.
#
name: Check pull request
on:
pull_request:
branches:
- development
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check_pull_request:
name: Check pull request
if: ${{ github.actor != 'renovate[bot]' }}
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
fetch-depth: 0
- name: Configure git
run: |
git config user.email "bot@mazanec.dev"
git config user.name "Bot"
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: edgedb/setup-edgedb@v1
with:
server-version: none
- name: Install packages
run: npm ci
- name: Check for changes
run: |
git config core.filemode false
git_status=$(git status --porcelain)
if [[ -n $git_status ]]; then
echo "You have uncommitted changes!"
git status
git config --unset core.filemode
exit 1
fi
git config --unset core.filemode
- name: Test
run: npm test -- --filter=!dram
- name: Test "dram"
run: |
npm run test -- --filter=dram
env:
EDGEDB_INSTANCE: jakubmazanec/whisky
EDGEDB_BRANCH: apps-${{ github.head_ref }}
EDGEDB_SECRET_KEY: ${{ secrets.JAKUBMAZANEC_WHISKY_EDGEDB_TOKEN }}
- name: Check for changes
run: |
git config core.filemode false
git_status=$(git status --porcelain)
if [[ -n $git_status ]]; then
echo "You have uncommitted changes!"
git status --porcelain
git config --unset core.filemode
exit 1
fi
git config --unset core.filemode
- name: Check for changesets
if: "github.actor != 'renovate[bot]'"
run: npx changeset status --since=origin/development