Update workflow
This commit is contained in:
5
.github/workflows/workflow.yml
vendored
5
.github/workflows/workflow.yml
vendored
@@ -19,6 +19,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
token: ${{ secrets._GITHUB_TOKEN }}
|
||||||
- name: Setup NodeJS
|
- name: Setup NodeJS
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
@@ -68,6 +71,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Setup NodeJS
|
- name: Setup NodeJS
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -2,13 +2,6 @@
|
|||||||
const path = require("path")
|
const path = require("path")
|
||||||
const git = require("simple-git")(path.join(__dirname, ".."))
|
const git = require("simple-git")(path.join(__dirname, ".."))
|
||||||
|
|
||||||
//Setup
|
|
||||||
beforeAll(async done => {
|
|
||||||
//Fetch master
|
|
||||||
await git.fetch(["origin", "master"])
|
|
||||||
done()
|
|
||||||
})
|
|
||||||
|
|
||||||
//Check generated files editions
|
//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+/, ""))
|
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([
|
describe('Auto-generated files were not modified (use "git checkout @ -- file" if needed)', () => void test.each([
|
||||||
|
|||||||
Reference in New Issue
Block a user