diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index a1e2ca7b..65650dff 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -19,6 +19,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 + with: + fetch-depth: 0 + token: ${{ secrets._GITHUB_TOKEN }} - name: Setup NodeJS uses: actions/setup-node@v2 with: @@ -68,6 +71,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} - name: Setup NodeJS uses: actions/setup-node@v2 with: diff --git a/tests/ci.test.js b/tests/ci.test.js index fab7f1db..4c0bb280 100644 --- a/tests/ci.test.js +++ b/tests/ci.test.js @@ -2,13 +2,6 @@ const path = require("path") const git = require("simple-git")(path.join(__dirname, "..")) -//Setup - beforeAll(async done => { - //Fetch master - await git.fetch(["origin", "master"]) - done() - }) - //Check generated files editions const diff = async () => (await git.diff("origin/master...", ["--name-status"])).split("\n").map(x => x.trim()).filter(x => /^M\s+/.test(x)).map(x => x.replace(/^M\s+/, "")) describe('Auto-generated files were not modified (use "git checkout @ -- file" if needed)', () => void test.each([