mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
build: update gh actions
This commit is contained in:
parent
9d4fa9ba6d
commit
0c2ee0197b
2
.github/scripts/check-tests.mjs
vendored
2
.github/scripts/check-tests.mjs
vendored
|
@ -44,7 +44,7 @@ const hasFunctionOrClass = async filePath => {
|
|||
const program = async () => {
|
||||
|
||||
// Run a git command to get a list of all files in the commit
|
||||
const changedFiles = await execAsync('git diff --name-only --diff-filter=d master...HEAD')
|
||||
const changedFiles = await execAsync('git diff --name-only --diff-filter=d origin/master..HEAD')
|
||||
.then(({stdout}) => stdout.trim().split('\n').filter(Boolean));
|
||||
|
||||
// Get all .spec.ts and .test.ts files from the packages
|
||||
|
|
9
.github/workflows/check-tests.yml
vendored
9
.github/workflows/check-tests.yml
vendored
|
@ -19,15 +19,6 @@ jobs:
|
|||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Fetch origin/master
|
||||
run: |
|
||||
git fetch origin master:master
|
||||
|
||||
- name: Get changed files
|
||||
id: getfile
|
||||
run: |
|
||||
echo "::set-output name=files::$(git diff --name-only master..${{ github.ref }})"
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
|
|
Loading…
Reference in a new issue