Update workflow

This commit is contained in:
lowlighter
2021-02-16 18:44:03 +01:00
parent d06888f067
commit 1245b9ac5e
2 changed files with 5 additions and 7 deletions

View File

@@ -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([