ci: allow edition of repository files for maintainers [skip ci]
This commit is contained in:
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -24,6 +24,8 @@ jobs:
|
||||
run: npm ci
|
||||
- name: Check contributions requirements
|
||||
run: npm test -- ci.test.js --noStackTrace
|
||||
env:
|
||||
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
|
||||
- name: Run linter
|
||||
run: npm run linter
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ describe("Check files editions (checkout your files if needed)", () => {
|
||||
".github/workflows/examples.yml",
|
||||
".github/readme/partials/documentation/compatibility.md",
|
||||
])("%s", async file => expect((await diff()).includes(file)).toBe(false)))
|
||||
if (!["lowlighter"].includes(process.env.PR_AUTHOR))
|
||||
describe("Repository level files were not modified", () =>
|
||||
void test.each([
|
||||
".github/config/*",
|
||||
|
||||
Reference in New Issue
Block a user