Skip to content

Commit e690549

Browse files
authored
Update workflow to use new action versions
1 parent 7e9bf00 commit e690549

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,19 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Check out the repository
19-
uses: actions/checkout@master
19+
uses: actions/checkout@v3
2020
with:
2121
fetch-depth: 0
2222

2323
- name: Set up Node environment
24-
uses: actions/setup-node@v1
24+
uses: actions/setup-node@v3
2525
with:
26-
node-version: '10.x'
26+
node-version: lts/*
27+
cache: 'yarn'
2728

28-
- name: Restore node_modules cache
29-
uses: actions/cache@v1
30-
id: multinetjs-cache
31-
with:
32-
path: /home/runner/work/multinetjs/multinetjs/node_modules
33-
key: ${{ runner.os }}-${{ hashFiles('/home/runner/work/multinetjs/multinetjs/yarn.lock') }}-multinetjs-cache
3429

3530
- name: Install yarn packages
36-
if: steps.multinetjs-cache.outputs.cache-hit != 'true'
37-
run: yarn install
31+
run: yarn install --immutable
3832

3933
- name: Run linting test
4034
run: yarn lint

0 commit comments

Comments
 (0)