ci: allow edition of repository files for maintainers [skip ci]

This commit is contained in:
lowlighter
2022-01-20 20:32:10 -05:00
parent 2112e3a53c
commit 877a76be78
2 changed files with 22 additions and 19 deletions

View File

@@ -24,6 +24,8 @@ jobs:
run: npm ci run: npm ci
- name: Check contributions requirements - name: Check contributions requirements
run: npm test -- ci.test.js --noStackTrace run: npm test -- ci.test.js --noStackTrace
env:
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
- name: Run linter - name: Run linter
run: npm run linter run: npm run linter

View File

@@ -19,6 +19,7 @@ describe("Check files editions (checkout your files if needed)", () => {
".github/workflows/examples.yml", ".github/workflows/examples.yml",
".github/readme/partials/documentation/compatibility.md", ".github/readme/partials/documentation/compatibility.md",
])("%s", async file => expect((await diff()).includes(file)).toBe(false))) ])("%s", async file => expect((await diff()).includes(file)).toBe(false)))
if (!["lowlighter"].includes(process.env.PR_AUTHOR))
describe("Repository level files were not modified", () => describe("Repository level files were not modified", () =>
void test.each([ void test.each([
".github/config/*", ".github/config/*",