Skip to content

Commit

Permalink
Merge pull request #1646 from tediousjs/arthur/ci-cleanup
Browse files Browse the repository at this point in the history
ci: GitHub Actions cleanup
  • Loading branch information
arthurschreiber authored Aug 7, 2024
1 parent 65ab37d commit 42617e4
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 35 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4.1.7


# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
73 changes: 41 additions & 32 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,21 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.7

with:
fetch-depth: 0
- name: Use Node.js 18
uses: actions/setup-node@v3
uses: actions/setup-node@v4.0.3
with:
node-version: 18

- name: Determine npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
- uses: actions/cache@v4.0.2
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -50,10 +51,11 @@ jobs:
fail-fast: false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.7


- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4.0.3
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -76,9 +78,9 @@ jobs:
- name: Determine npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
- uses: actions/cache@v4.0.2
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand Down Expand Up @@ -206,10 +208,11 @@ jobs:
Pop-Location
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.7


- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4.0.3
with:
node-version: ${{ matrix.node-version }}

Expand Down Expand Up @@ -257,10 +260,11 @@ jobs:

- name: Determine npm cache directory
id: npm-cache
shell: bash
run: |
echo "::set-output name=dir::$(npm config get cache)"
echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
- uses: actions/cache@v4.0.2
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand Down Expand Up @@ -330,17 +334,18 @@ jobs:
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.7

- name: Use Node.js 18
uses: actions/setup-node@v3
uses: actions/setup-node@v4.0.3
with:
node-version: 18

- name: Determine npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v3
echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v4.0.2
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand Down Expand Up @@ -373,18 +378,19 @@ jobs:
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.7

- name: Use Node.js 18
uses: actions/setup-node@v3
uses: actions/setup-node@v4.0.3
with:
node-version: 18

- name: Determine npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
- uses: actions/cache@v4.0.2
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand Down Expand Up @@ -419,18 +425,19 @@ jobs:
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.7

- name: Use Node.js 18
uses: actions/setup-node@v3
uses: actions/setup-node@v4.0.3
with:
node-version: 18

- name: Determine npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
- uses: actions/cache@v4.0.2
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand Down Expand Up @@ -466,18 +473,19 @@ jobs:
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.7

- name: Use Node.js 18
uses: actions/setup-node@v3
uses: actions/setup-node@v4.0.3
with:
node-version: 18

- name: Determine npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
- uses: actions/cache@v4.0.2
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand Down Expand Up @@ -509,18 +517,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.7

- name: Use Node.js 18
uses: actions/setup-node@v3
uses: actions/setup-node@v4.0.3
with:
node-version: 18

- name: Determine npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
- uses: actions/cache@v4.0.2
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.7

- name: Use Node.js 18
uses: actions/setup-node@v3
uses: actions/setup-node@v4.0.3
with:
node-version: 18

Expand Down

0 comments on commit 42617e4

Please sign in to comment.