Skip to content

Commit 2c013bc

Browse files
committed
try to fix CI 8
1 parent 2a1a417 commit 2c013bc

File tree

3 files changed

+72
-73
lines changed

3 files changed

+72
-73
lines changed

.github/workflows/test.yaml

Lines changed: 43 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
registry-url: 'https://npm.pkg.github.com/'
2424
scope: '@apify-packages'
2525

26-
- name: Enable corepack
27-
run: |
28-
corepack enable
26+
- name: Enable corepack
27+
run: |
28+
corepack enable
2929
3030
- name: Install Dependencies
3131
run: npm ci --force
@@ -40,44 +40,43 @@ jobs:
4040
name: Lint markdown content
4141
runs-on: ubuntu-latest
4242
steps:
43-
- name: Checkout Source code
44-
uses: actions/checkout@v4
45-
46-
- name: Get changed files
47-
id: changed-files
48-
uses: tj-actions/changed-files@v45
49-
with:
50-
files: |
51-
**/*.md
52-
**/*.mdx
53-
separator: ","
54-
55-
- name: Use Node.js 22
56-
uses: actions/setup-node@v4
57-
with:
58-
node-version: 22
59-
cache: 'npm'
60-
cache-dependency-path: 'package-lock.json'
61-
registry-url: 'https://npm.pkg.github.com/'
62-
scope: '@apify-packages'
63-
64-
- name: Enable corepack
65-
run: |
66-
corepack enable
67-
68-
- name: Install Dependencies
69-
run: npm ci --force
70-
env:
71-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
72-
73-
- name: List and Lint Changed Markdown Files
74-
env:
75-
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
76-
run: |
77-
IFS=',' read -ra FILE_ARRAY <<< "$ALL_CHANGED_FILES"
78-
for file in "${FILE_ARRAY[@]}"; do
79-
npx markdownlint "$file"
80-
done
43+
- name: Checkout Source code
44+
uses: actions/checkout@v4
45+
46+
- name: Get changed files
47+
id: changed-files
48+
uses: tj-actions/changed-files@v45
49+
with:
50+
files: '**/*.{md,mdx}'
51+
files_ignore: '!sources/api/*.{md,mdx}'
52+
separator: ","
53+
54+
- name: Use Node.js 22
55+
uses: actions/setup-node@v4
56+
with:
57+
node-version: 22
58+
cache: 'npm'
59+
cache-dependency-path: 'package-lock.json'
60+
registry-url: 'https://npm.pkg.github.com/'
61+
scope: '@apify-packages'
62+
63+
- name: Enable corepack
64+
run: |
65+
corepack enable
66+
67+
- name: Install Dependencies
68+
run: npm ci --force
69+
env:
70+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
71+
72+
- name: List and Lint Changed Markdown Files
73+
env:
74+
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
75+
run: |
76+
IFS=',' read -ra FILE_ARRAY <<< "$ALL_CHANGED_FILES"
77+
for file in "${FILE_ARRAY[@]}"; do
78+
npx markdownlint "$file"
79+
done
8180
8281
8382
lint_code:
@@ -96,9 +95,9 @@ jobs:
9695
registry-url: 'https://npm.pkg.github.com/'
9796
scope: '@apify-packages'
9897

99-
- name: Enable corepack
100-
run: |
101-
corepack enable
98+
- name: Enable corepack
99+
run: |
100+
corepack enable
102101
103102
- name: Install Dependencies
104103
run: npm ci --force

.github/workflows/typos-check.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ name: Typos Check
22

33
on:
44
pull_request:
5-
branches: [master]
5+
branches: [ master ]
66

77
jobs:
88
run:
99
name: Spell Check with Typos
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Checkout code
13-
uses: actions/checkout@v4
12+
- name: Checkout code
13+
uses: actions/checkout@v4
1414

15-
- name: Check spelling
16-
uses: crate-ci/typos@master
17-
with:
18-
files: ./sources
15+
- name: Check spelling
16+
uses: crate-ci/typos@master
17+
with:
18+
files: ./sources

.github/workflows/vale.yaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
name: Vale
22

3-
on: [pull_request]
3+
on: [ pull_request ]
44

55
jobs:
6-
lint:
7-
runs-on: ubuntu-latest
6+
lint:
7+
runs-on: ubuntu-latest
88

9-
steps:
10-
- uses: actions/checkout@v4
11-
with:
12-
fetch-depth: 0
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
1313

14-
- name: Get changed files
15-
id: changed-files
16-
uses: tj-actions/changed-files@v45
17-
with:
18-
files: '**/*.{md,mdx}'
19-
files_ignore: '!sources/api/*.{md,mdx}'
20-
separator: ","
14+
- name: Get changed files
15+
id: changed-files
16+
uses: tj-actions/changed-files@v45
17+
with:
18+
files: '**/*.{md,mdx}'
19+
files_ignore: '!sources/api/*.{md,mdx}'
20+
separator: ","
2121

22-
- uses: errata-ai/vale-action@reviewdog
23-
if: steps.changed-files.outputs.any_changed == 'true'
24-
with:
25-
files: ${{ steps.changed-files.outputs.all_changed_files }}
26-
separator: ","
27-
fail_on_error: true
28-
vale_flags: "--minAlertLevel=error"
29-
reporter: github-pr-annotations
22+
- uses: errata-ai/vale-action@reviewdog
23+
if: steps.changed-files.outputs.any_changed == 'true'
24+
with:
25+
files: ${{ steps.changed-files.outputs.all_changed_files }}
26+
separator: ","
27+
fail_on_error: true
28+
vale_flags: "--minAlertLevel=error"
29+
reporter: github-pr-annotations

0 commit comments

Comments
 (0)