File tree Expand file tree Collapse file tree 2 files changed +15
-19
lines changed
Expand file tree Collapse file tree 2 files changed +15
-19
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: Actions. Lint
22
33on : [push]
44
5+ env :
6+ TASK_X_REMOTE_TASKFILES : 1
7+
58jobs :
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
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: Actions. Test Unit
22
33on : [push]
44
5+ env :
6+ TASK_X_REMOTE_TASKFILES : 1
7+
58jobs :
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
You can’t perform that action at this time.
0 commit comments