Skip to content

Commit

Permalink
updating github actions versions (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janther authored Aug 21, 2023
1 parent 33b9970 commit e8bc070
Showing 1 changed file with 18 additions and 42 deletions.
60 changes: 18 additions & 42 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,11 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: cache
with:
path: |
node_modules
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}
cache: 'npm'
- name: Install
run: npm install
- name: lint
Expand All @@ -32,16 +27,11 @@ jobs:
name: Test production
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: cache
with:
path: |
node_modules
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}
cache: 'npm'
- name: Install
run: npm install
- name: Build
Expand All @@ -53,16 +43,11 @@ jobs:
name: Prettier V2
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: cache
with:
path: |
node_modules
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}
cache: 'npm'
- name: Install
run: npm install
- name: Build with Prettier V3
Expand All @@ -81,16 +66,11 @@ jobs:
matrix:
node: [16, 18, 20]
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: cache
with:
path: |
node_modules
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('package-lock.json') }}
cache: 'npm'
- name: Install
run: npm install
- name: Run tests
Expand All @@ -100,16 +80,11 @@ jobs:
name: Test on MacOS with Node 16
runs-on: macos-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: cache
with:
path: |
node_modules
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}
cache: 'npm'
- name: Install
run: npm install
- name: Run tests
Expand All @@ -119,10 +94,11 @@ jobs:
name: Test on Windows with Node 16
runs-on: windows-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/checkout@v2
cache: 'npm'
- name: Install
run: npm install
- name: Run tests
Expand Down

0 comments on commit e8bc070

Please sign in to comment.