Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 46df690

Browse files
authored
Merge pull request #42 from log4js-node/update-ci
ci: updated gh actions for deprecations
2 parents 85935bf + d393191 commit 46df690

File tree

3 files changed

+31
-29
lines changed

3 files changed

+31
-29
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ master ]
16+
branches: [ "master" ]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ master ]
20-
schedule:
21-
- cron: '15 11 * * 3'
19+
branches: [ "master" ]
2220

2321
jobs:
2422
analyze:
@@ -34,37 +32,41 @@ jobs:
3432
matrix:
3533
language: [ 'javascript' ]
3634
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37-
# Learn more about CodeQL language support at https://git.io/codeql-language-support
35+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3836

3937
steps:
4038
- name: Checkout repository
41-
uses: actions/checkout@v2
39+
uses: actions/checkout@v3
4240

4341
# Initializes the CodeQL tools for scanning.
4442
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v1
43+
uses: github/codeql-action/init@v2
4644
with:
4745
languages: ${{ matrix.language }}
4846
# If you wish to specify custom queries, you can do so here or in a config file.
4947
# By default, queries listed here will override any specified in a config file.
5048
# Prefix the list here with "+" to use these queries and those in the config file.
51-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5249

53-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
50+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
51+
# queries: security-extended,security-and-quality
52+
53+
54+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
5455
# If this step fails, then you should remove it and run the build manually (see below)
5556
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v1
57+
uses: github/codeql-action/autobuild@v2
5758

5859
# ℹ️ Command-line programs to run using the OS shell.
59-
# 📚 https://git.io/JvXDl
60+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6061

61-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62-
# and modify them (or add more) to build your code if your project
63-
# uses a compiled language
62+
# If the Autobuild fails above, remove it and uncomment the following three lines.
63+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
6464

65-
#- run: |
66-
# make bootstrap
67-
# make release
65+
# - run: |
66+
# echo "Run, Build Application using script"
67+
# ./location_of_script_within_repo/buildscript.sh
6868

6969
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@v1
70+
uses: github/codeql-action/analyze@v2
71+
with:
72+
category: "/language:${{matrix.language}}"

.github/workflows/nodejs.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

44
name: Node.js CI
55

66
on:
77
push:
8-
branches: [ master ]
8+
branches: [ "master" ]
99
pull_request:
10-
branches: [ master ]
10+
branches: [ "master" ]
11+
workflow_dispatch: {}
1112

1213
jobs:
1314
build:
@@ -16,19 +17,18 @@ jobs:
1617

1718
strategy:
1819
matrix:
19-
node-version: [12.x, 14.x, 16.x]
2020
os: [ubuntu-latest]
21+
node-version: [12.x, 14.x, 16.x, 18.x]
2122
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2223

2324
steps:
24-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
2526
- name: Use Node.js ${{ matrix.node-version }}
26-
uses: actions/setup-node@v2
27+
uses: actions/setup-node@v3
2728
with:
2829
node-version: ${{ matrix.node-version }}
2930
cache: 'npm'
3031
- run: npm ci
3132
- run: npm run build --if-present
3233
- run: npm test
3334
- run: npm run typings --if-present
34-

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v2
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
1616
with:
1717
node-version: 16
1818
- run: npm ci
@@ -23,8 +23,8 @@ jobs:
2323
needs: build
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v2
27-
- uses: actions/setup-node@v2
26+
- uses: actions/checkout@v3
27+
- uses: actions/setup-node@v3
2828
with:
2929
node-version: 16
3030
registry-url: https://registry.npmjs.org/

0 commit comments

Comments
 (0)