Skip to content

Commit d13c377

Browse files
Fral738alexey-igrychev
authored andcommitted
chore(ci): run lint and tests via Taskfile
Signed-off-by: Evgeniy Frolov <evgeniy.frolov@flant.com>
1 parent 3b31128 commit d13c377

File tree

2 files changed

+15
-19
lines changed

2 files changed

+15
-19
lines changed

.github/workflows/actions_lint.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Actions. Lint
22

33
on: [push]
44

5+
env:
6+
TASK_X_REMOTE_TASKFILES: 1
7+
58
jobs:
69
lint:
710
runs-on: ubuntu-22.04
@@ -11,17 +14,12 @@ jobs:
1114
- name: Checkout code
1215
uses: actions/checkout@v4
1316

14-
- name: Use Node.js
15-
uses: actions/setup-node@v4
17+
- name: Install Task
18+
uses: arduino/setup-task@v2
1619
with:
17-
node-version: "18.x"
18-
19-
- name: Clean install a project
20-
working-directory: actions
21-
run: npm ci
20+
repo-token: ${{ secrets.GITHUB_TOKEN }}
2221

2322
- name: Lint
24-
working-directory: actions
2523
run: |
26-
npm run lint
27-
npm run format:check
24+
task --yes actions:lint
25+
task --yes actions:format:check

.github/workflows/actions_test_unit.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Actions. Test Unit
22

33
on: [push]
44

5+
env:
6+
TASK_X_REMOTE_TASKFILES: 1
7+
58
jobs:
69
test-unit:
710
runs-on: ubuntu-22.04
@@ -11,15 +14,10 @@ jobs:
1114
- name: Checkout code
1215
uses: actions/checkout@v4
1316

14-
- name: Use Node.js
15-
uses: actions/setup-node@v4
17+
- name: Install Task
18+
uses: arduino/setup-task@v2
1619
with:
17-
node-version: "18.x"
18-
19-
- name: Clean install a project
20-
working-directory: actions
21-
run: npm ci
20+
repo-token: ${{ secrets.GITHUB_TOKEN }}
2221

2322
- name: Test Unit
24-
working-directory: actions
25-
run: npm run test
23+
run: task --yes actions:test

0 commit comments

Comments
 (0)