Skip to content

Commit 3a196ac

Browse files
committed
chore: fix test workflow
1 parent e3e3e5d commit 3a196ac

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

.github/workflows/test-and-lint.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,14 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12-
with:
13-
fetch-depth: 0
14-
ref: main
1512
- uses: actions/setup-node@v2
1613
with:
17-
node-version: '14'
18-
- run: |
19-
if [ -f "yarn.lock" ]; then
20-
yarn install
21-
else
22-
npm install
23-
fi
24-
- run: |
25-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
26-
git config --global user.name "github-actions[bot]"
27-
- run: yarn test
28-
- run: yarn lint
29-
env:
30-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
SLACK_INCOMING_HOOK: ${{ secrets.SLACK_INCOMING_HOOK }}
14+
node-version: '16'
15+
- name: Install dependencies
16+
working-directory: ./
17+
run: yarn install --frozen-lockfile
18+
- name: Run tests
19+
run: yarn test
20+
- name: Run lint
21+
run: yarn lint
22+

0 commit comments

Comments
 (0)