Skip to content

Commit 6fca911

Browse files
authored
GLSP-1578: Update Github actions flows (#36)
- Update github action workflows - Switch to 2.6.0-next version - Clean up root scripts - Add eslint/prettier ignore files - Fix minor formatting issues
1 parent b8a4bd0 commit 6fca911

21 files changed

Lines changed: 243 additions & 842 deletions

.eslintignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Compiled output
2+
**/dist/
3+
**/lib/
4+
**/node_modules/
5+
**/repositories/
6+
7+
# Build files
8+
**/.eslintrc.js
9+
**/esbuild.js
10+
11+
# Other generated files
12+
**/*.map

.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
module.exports = {
33
root: true,
44
extends: ['@eclipse-glsp'],
5-
ignorePatterns: ['**/{node_modules,lib}', '**/.eslintrc.js'],
65
parserOptions: {
76
tsconfigRootDir: __dirname,
87
project: 'tsconfig.eslint.json'

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ to learn how to report vulnerabilities.
2525

2626
<!-- Please check, when if it applies to your change. -->
2727

28-
- [ ] This PR should be mentioned in the changelog
29-
- [ ] This PR introduces a breaking change (if yes, provide more details below for the changelog and the migration guide)
28+
- [ ] This PR should be mentioned in the changelog
29+
- [ ] This PR introduces a breaking change (if yes, provide more details below for the changelog and the migration guide)

.github/workflows/ci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
runs-on: ubuntu-22.04
1616
timeout-minutes: 60
1717
steps:
18-
- uses: actions/checkout@v4.1.7
19-
- uses: actions/setup-node@v4.0.2
18+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
19+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
2020
with:
2121
node-version: 20.x
2222
- name: Install dependencies
@@ -32,8 +32,8 @@ jobs:
3232
timeout-minutes: 60
3333
runs-on: ubuntu-22.04
3434
steps:
35-
- uses: actions/checkout@v4.1.7
36-
- uses: actions/setup-node@v4.0.2
35+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
36+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
3737
with:
3838
node-version: 20.x
3939
- name: Install
@@ -62,8 +62,8 @@ jobs:
6262
GLSP_SERVER_PLAYWRIGHT_MANAGED: 'true'
6363
GLSP_WEBSOCKET_PATH: 'workflow'
6464
steps:
65-
- uses: actions/checkout@v4.1.7
66-
- uses: actions/setup-node@v4.0.2
65+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
66+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
6767
with:
6868
node-version: '20'
6969
- name: Install dependencies
@@ -82,7 +82,7 @@ jobs:
8282
run: xvfb-run -a yarn test
8383
- name: Upload Playwright report
8484
if: ${{ always() }}
85-
uses: actions/upload-artifact@v4.3.4
85+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
8686
with:
8787
name: playwright-report-node
8888
path: examples/workflow-test/playwright-report/
@@ -100,12 +100,12 @@ jobs:
100100
GLSP_SERVER_PLAYWRIGHT_MANAGED: 'true'
101101
GLSP_WEBSOCKET_PATH: 'workflow'
102102
steps:
103-
- uses: actions/checkout@v4.1.7
104-
- uses: actions/setup-node@v4.0.2
103+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
104+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
105105
with:
106106
node-version: '20'
107107
- name: Set up JDK
108-
uses: actions/setup-java@v4.2.1
108+
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
109109
with:
110110
distribution: 'temurin'
111111
java-version: '17'
@@ -125,7 +125,7 @@ jobs:
125125
run: xvfb-run -a yarn test
126126
- name: Upload Playwright report
127127
if: ${{ always() }}
128-
uses: actions/upload-artifact@v4.3.4
128+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
129129
with:
130130
name: playwright-report-java
131131
path: examples/workflow-test/playwright-report/

.github/workflows/codeql.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@
1212
name: 'CodeQL'
1313

1414
on:
15-
push:
16-
branches: ['main']
17-
pull_request:
18-
branches: ['main']
15+
workflow_dispatch:
1916
schedule:
20-
- cron: '20 18 * * 0'
17+
- cron: '20 18 * * 0' # At 18:20 on Sunday
2118

2219
jobs:
2320
analyze:
@@ -56,11 +53,11 @@ jobs:
5653
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
5754
steps:
5855
- name: Checkout repository
59-
uses: actions/checkout@v4
56+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
6057

6158
# Initializes the CodeQL tools for scanning.
6259
- name: Initialize CodeQL
63-
uses: github/codeql-action/init@v3
60+
uses: github/codeql-action/init@16df4fbc19aea13d921737861d6c622bf3cefe23 # v2.23.0
6461
with:
6562
languages: ${{ matrix.language }}
6663
build-mode: ${{ matrix.build-mode }}
@@ -88,6 +85,6 @@ jobs:
8885
exit 1
8986
9087
- name: Perform CodeQL Analysis
91-
uses: github/codeql-action/analyze@v3
88+
uses: github/codeql-action/analyze@16df4fbc19aea13d921737861d6c622bf3cefe23 # v2.23.0
9289
with:
9390
category: '/language:${{matrix.language}}'

.github/workflows/e2e.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
on:
88
workflow_dispatch:
99
schedule:
10-
- cron: '20 18 * * 1'
10+
- cron: '20 18 * * 1' # At 18:20 on Monday
1111

1212
jobs:
1313
playwright-node:
@@ -27,8 +27,8 @@ jobs:
2727
GLSP_SERVER_PLAYWRIGHT_MANAGED: 'true'
2828
GLSP_WEBSOCKET_PATH: 'workflow'
2929
steps:
30-
- uses: actions/checkout@v4.1.7
31-
- uses: actions/setup-node@v4.0.2
30+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
31+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
3232
with:
3333
node-version: '20'
3434
- name: Install dependencies
@@ -52,7 +52,7 @@ jobs:
5252
fi
5353
- name: Upload Playwright report
5454
if: ${{ always() }}
55-
uses: actions/upload-artifact@v4.3.4
55+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5656
with:
5757
name: playwright-report-${{ matrix.os }}
5858
path: examples/workflow-test/playwright-report/
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Prepare Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_type:
7+
description: 'Release type (major, minor, patch, next, or custom)'
8+
required: true
9+
type: choice
10+
options:
11+
- major
12+
- minor
13+
- patch
14+
- next
15+
- custom
16+
custom_version:
17+
description: 'Custom version (required if release_type is custom)'
18+
required: false
19+
type: string
20+
branch:
21+
description: 'Branch to use for the release repo (default: default branch)'
22+
required: false
23+
type: string
24+
draft:
25+
description: 'Create PR as draft'
26+
required: false
27+
type: boolean
28+
default: false
29+
30+
jobs:
31+
prepare-release:
32+
uses: eclipse-glsp/glsp/.github/workflows/prepare-release.yml@master
33+
with:
34+
release_type: ${{ inputs.release_type }}
35+
custom_version: ${{ inputs.custom_version }}
36+
release_repo: glsp-playwright
37+
branch: ${{ inputs.branch }}
38+
draft: ${{ inputs.draft }}

.github/workflows/publish-next.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
env:
1919
changes: true
2020
steps:
21-
- uses: actions/checkout@v4.1.7
21+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2222
with:
2323
# To fetch all history for all branches and tags.
2424
# Required for lerna to determine the version of the next package.
@@ -33,7 +33,7 @@ jobs:
3333
echo "changes=false" >> $GITHUB_ENV
3434
fi
3535
if: github.event_name == 'workflow_run'
36-
- uses: actions/setup-node@v4.0.2
36+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
3737
with:
3838
node-version: 20.x
3939
registry-url: 'https://registry.npmjs.org'

.prettierignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Dependencies
2+
node_modules/
3+
4+
**/repositories/
5+
6+
# Build outputs
7+
lib/
8+
dist/
9+
10+
# Generated files
11+
*.min.js
12+
*.min.css
13+
14+
# Lock files
15+
package-lock.json
16+
yarn.lock
17+
18+
# Logs
19+
*.log

.vscode/settings.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
"task.autoDetect": "off",
1818
"typescript.tsdk": "node_modules/typescript/lib",
1919
"typescript.preferences.importModuleSpecifier": "relative",
20-
"typescript.preferences.autoImportFileExcludePatterns": [
21-
"packages/*/src/index.ts"
22-
],
20+
"typescript.preferences.autoImportFileExcludePatterns": ["packages/*/src/index.ts"],
2321
"[css]": {
2422
"editor.defaultFormatter": "esbenp.prettier-vscode"
2523
},

0 commit comments

Comments
 (0)