Skip to content

Commit ebd7408

Browse files
authored
Merge pull request #249 from Dahlgren/ci/github-actions
Update GitHub Actions workflows
2 parents 44b3edb + aa3e449 commit ebd7408

File tree

3 files changed

+22
-52
lines changed

3 files changed

+22
-52
lines changed

.github/workflows/codeql.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/docker.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ on:
88
branches:
99
- master
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
build:
1316
name: Build
14-
runs-on: ubuntu-20.04
17+
runs-on: ubuntu-22.04
1518

1619
steps:
1720
- name: Checkout
18-
uses: actions/checkout@v2
21+
uses: actions/checkout@v4
1922

2023
- name: Docker build
2124
run: docker build . --tag arma-server-web-admin

.github/workflows/node.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- master
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
build:
1316
name: Build
@@ -16,33 +19,34 @@ jobs:
1619
strategy:
1720
matrix:
1821
node-version:
19-
- 16.x
20-
- 14.x
21-
- 12.x
22-
- 10.x
23-
- 8.x
24-
- 6.x
25-
- 4.x
22+
- 24
23+
- 22
24+
- 20
25+
- 18
26+
- 16
27+
- 14
28+
- 12
29+
- 10
2630
os:
27-
- ubuntu-20.04
28-
- windows-2019
31+
- ubuntu-22.04
32+
- windows-2022
2933

3034
steps:
3135
- name: Checkout
32-
uses: actions/checkout@v2
36+
uses: actions/checkout@v4
3337

3438
- name: Use Node.js ${{ matrix.node-version }}
35-
uses: actions/setup-node@v1
39+
uses: actions/setup-node@v4
3640
with:
3741
node-version: ${{ matrix.node-version }}
38-
42+
3943
- name: Get npm cache directory
4044
id: npm-cache
4145
run: |
4246
echo "::set-output name=dir::$(npm config get cache)"
4347
4448
- name: Cache npm dependencies
45-
uses: actions/cache@v2
49+
uses: actions/cache@v4
4650
with:
4751
path: ${{ steps.npm-cache.outputs.dir }}
4852
key: ${{ matrix.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}

0 commit comments

Comments
 (0)