Skip to content

Commit 98356d6

Browse files
committed
Update GitHub Actions workflows
Update GitHub Actions workflows to run tests on pull requests targeting master or main branches. * Modify `.github/workflows/build.yml` to trigger on pull request events targeting master or main branches. * Remove the `ouzi-dev/commit-status-updater` step from `.github/workflows/build.yml`. * Remove reference to the `trying` branch in `.github/workflows/build.yml`. * Modify `.github/workflows/codeql-analysis.yml` to trigger on pull request events targeting master or main branches. * Add a step to update the commit status with the name "codeql-analysis" and status "success" in `.github/workflows/codeql-analysis.yml`. * Remove reference to the `trying` branch in `.github/workflows/codeql-analysis.yml`. * Delete `bors.toml` file. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/jelford/keyn?shareId=XXXX-XXXX-XXXX-XXXX).
1 parent 0316378 commit 98356d6

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: Build and Test
22

33
on:
44
push:
5-
branches: [ master, trying, staging ]
5+
branches: [ master, staging ]
6+
pull_request:
7+
branches: [ master, main ]
68

79
jobs:
810
build:
@@ -18,7 +20,3 @@ jobs:
1820
- run: npm ci
1921
- run: npx web-ext lint
2022
- run: SELENIUM_BROWSER=${{ matrix.browser }} npm test
21-
- uses: ouzi-dev/[email protected]
22-
with:
23-
name: "build"
24-
status: "success"

.github/workflows/codeql-analysis.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: "CodeQL"
22

33
on:
44
push:
5-
branches: [ master, trying, staging ]
5+
branches: [ master, staging ]
6+
pull_request:
7+
branches: [ master, main ]
68
schedule:
79
- cron: '16 23 * * 1'
810

@@ -35,3 +37,10 @@ jobs:
3537

3638
- name: Perform CodeQL Analysis
3739
uses: github/codeql-action/analyze@v1
40+
41+
- name: Update commit status
42+
uses: sibiraj-s/action-commit-status@v2
43+
with:
44+
state: 'success'
45+
context: 'codeql-analysis'
46+
description: 'CodeQL analysis completed successfully'

bors.toml

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)