From 1245b9ac5e5962632d1ed776e9fb2dd9b3508ed5 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Tue, 16 Feb 2021 18:44:03 +0100 Subject: [PATCH] Update workflow --- .github/workflows/workflow.yml | 5 +++++ tests/ci.test.js | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) 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([