Skip to content

Commit 5e6f2c0

Browse files
committed
add support for dev branch
1 parent 9cd2daa commit 5e6f2c0

4 files changed

Lines changed: 50 additions & 48 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: build
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, dev]
66
pull_request:
77
workflow_dispatch:
88
jobs:

.github/workflows/licenses.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: refresh 3rd party licenses
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [main]
6+
branches: [main, dev]
77
paths:
88
- "yarn.lock"
99
concurrency:
@@ -13,9 +13,9 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
permissions:
16-
actions: read
17-
contents: write
18-
pull-requests: write
16+
actions: read
17+
contents: write
18+
pull-requests: write
1919
steps:
2020
- uses: actions/checkout@v4
2121
with:

.github/workflows/playwright.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
push:
1111
branches:
1212
- main
13+
- dev
1314
paths:
1415
- yarn.lock
1516
- ".github/workflows/playwright.yml"

packages/sample/src/tla/PR.yml

Lines changed: 44 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,49 @@
11
name: tlAI-linter
22

33
on:
4-
pull_request:
5-
branches:
6-
- master
4+
pull_request:
5+
branches:
6+
- main
7+
- dev
78

89
jobs:
9-
linting:
10-
name: tlAI-linter
11-
12-
runs-on: ubuntu-latest
13-
14-
env:
15-
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
16-
OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }}
17-
OPENAI_API_TYPE: ${{ secrets.OPENAI_API_TYPE }}
18-
19-
defaults:
20-
run:
21-
shell: bash
22-
23-
steps:
24-
- name: Clone repo
25-
uses: actions/checkout@v4
26-
with:
27-
## All history for git diff below to succeed.
28-
fetch-depth: 0
29-
30-
- name: Setup NodeJS
31-
## https://github.com/actions/setup-node
32-
uses: actions/setup-node@v4
33-
with:
34-
node-version: "20"
35-
36-
- name: Run GenAIscript on the TLA+ specs that are added in this pull request.
37-
## Identify git diff: $(git diff --name-only HEAD^ | grep '.tla')
38-
## Install genaiscript runtime: https://microsoft.github.io/genaiscript/reference/cli/
39-
## Output LLM response in SARIF format: https://microsoft.github.io/genaiscript/reference/scripts/annotations/
40-
run: npx --yes genaiscript run .github/scripts/tlAI-Linter.genai.js $(git diff --name-only HEAD^ | grep '.tla') -oa results.sarif
41-
42-
- name: Upload SARIF file
43-
## https://sarifweb.azurewebsites.net
44-
## https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github
45-
if: success() || failure()
46-
uses: github/codeql-action/upload-sarif@v3
47-
with:
48-
sarif_file: results.sarif
10+
linting:
11+
name: tlAI-linter
12+
13+
runs-on: ubuntu-latest
14+
15+
env:
16+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
17+
OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }}
18+
OPENAI_API_TYPE: ${{ secrets.OPENAI_API_TYPE }}
19+
20+
defaults:
21+
run:
22+
shell: bash
23+
24+
steps:
25+
- name: Clone repo
26+
uses: actions/checkout@v4
27+
with:
28+
## All history for git diff below to succeed.
29+
fetch-depth: 0
30+
31+
- name: Setup NodeJS
32+
## https://github.com/actions/setup-node
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: "20"
36+
37+
- name: Run GenAIscript on the TLA+ specs that are added in this pull request.
38+
## Identify git diff: $(git diff --name-only HEAD^ | grep '.tla')
39+
## Install genaiscript runtime: https://microsoft.github.io/genaiscript/reference/cli/
40+
## Output LLM response in SARIF format: https://microsoft.github.io/genaiscript/reference/scripts/annotations/
41+
run: npx --yes genaiscript run .github/scripts/tlAI-Linter.genai.js $(git diff --name-only HEAD^ | grep '.tla') -oa results.sarif
42+
43+
- name: Upload SARIF file
44+
## https://sarifweb.azurewebsites.net
45+
## https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github
46+
if: success() || failure()
47+
uses: github/codeql-action/upload-sarif@v3
48+
with:
49+
sarif_file: results.sarif

0 commit comments

Comments
 (0)