Skip to content

Commit 7556efd

Browse files
committed
Merge branch 'develop'
2 parents e240baa + 1654c1a commit 7556efd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+9751
-22491
lines changed

.github/workflows/build-and-publish-base-php.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ jobs:
1313
IMAGE: sillsdev/web-languageforge:base-php
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717

18-
- uses: docker/setup-qemu-action@v2
18+
- uses: docker/setup-qemu-action@v3
1919

20-
- uses: docker/setup-buildx-action@v2
20+
- uses: docker/setup-buildx-action@v3
2121
with:
22-
platforms: linux/amd64,linux/arm64
22+
platforms: linux/amd64
2323

2424
- name: Log in to Docker Hub
25-
uses: docker/login-action@v2
25+
uses: docker/login-action@v3
2626
with:
2727
username: ${{ secrets.DOCKERHUB_USERNAME }}
2828
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
2929

3030
- name: Build, tag and push image
31-
run: docker buildx build --push --platform linux/amd64,linux/arm64 -t ${{ env.IMAGE }} -f docker/base-php/Dockerfile .
31+
run: docker buildx build --push --platform linux/amd64 -t ${{ env.IMAGE }} -f docker/base-php/Dockerfile .

.github/workflows/e2e-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,16 @@ jobs:
1717

1818
steps:
1919
-
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
21+
-
22+
uses: pnpm/action-setup@v4
2123
-
2224
name: Playwright E2E Tests
2325
run: make e2e-tests-ci browser=${{ matrix.browser }} shard="${{ matrix.shard }}/${{ matrix.shards }}"
2426
-
2527
name: Upload Playwright test results
2628
if: always()
27-
uses: actions/upload-artifact@v3
29+
uses: actions/upload-artifact@v4
2830
with:
2931
name: test-results-${{ matrix.browser }}-${{ matrix.shard }}
3032
path: test/e2e/test-results

.github/workflows/integrate-and-deploy.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
steps:
3636
-
37-
uses: actions/checkout@v3
37+
uses: actions/checkout@v4
3838
-
3939
run: |
4040
docker --version
@@ -54,15 +54,17 @@ jobs:
5454
TAG_LFMERGE=${TAG_LFMERGE:-latest}
5555
echo "TAG_LFMERGE=${TAG_LFMERGE}" >> $GITHUB_OUTPUT
5656
-
57-
uses: actions/setup-node@v3
57+
uses: pnpm/action-setup@v4
58+
-
59+
uses: actions/setup-node@v4
5860
with:
59-
node-version: '16.14.0'
60-
cache: 'npm'
61+
node-version: '22.2.0'
62+
cache: 'pnpm'
6163
-
62-
run: npm ci
64+
run: pnpm install
6365
-
6466
name: Build legacy app
65-
run: docker compose build --build-arg ENVIRONMENT=production --build-arg BUILD_VERSION=${{ steps.image.outputs.TAG_APP }} app
67+
run: docker compose -f docker-compose.yml -f docker-compose.production.yml build --build-arg BUILD_VERSION=${{ steps.image.outputs.TAG_APP }} app
6668
-
6769
name: Verify version stamping
6870
run: |

.github/workflows/pull-request.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
outputs:
2121
status: ${{ steps.check-labels.outputs.status }}
2222
steps:
23-
- uses: mheap/github-action-required-labels@v3
23+
- uses: mheap/github-action-required-labels@5847eef68201219cf0a4643ea7be61e77837bbce # v5.4.1
2424
id: check-labels
2525
with:
2626
mode: exactly
2727
count: 1
2828
labels: "bug, feature, engineering, security fix, testing"
29-
- uses: mheap/github-action-required-labels@v3
29+
- uses: mheap/github-action-required-labels@5847eef68201219cf0a4643ea7be61e77837bbce # v5.4.1
3030
with:
3131
mode: exactly
3232
count: 0
@@ -41,7 +41,7 @@ jobs:
4141

4242
steps:
4343
-
44-
uses: actions/checkout@v3
44+
uses: actions/checkout@v4
4545
-
4646
name: Unit Tests
4747
run: make unit-tests-ci
@@ -61,14 +61,16 @@ jobs:
6161
runs-on: ubuntu-latest
6262
steps:
6363
-
64-
uses: actions/checkout@v3
64+
uses: actions/checkout@v4
6565
-
66-
uses: actions/setup-node@v3
66+
uses: pnpm/action-setup@v4
67+
-
68+
uses: actions/setup-node@v4
6769
with:
68-
node-version: "16.14.0"
69-
cache: "npm"
70+
node-version: "22.2.0"
71+
cache: "pnpm"
7072
-
7173
name: Run prettier check
7274
run: |
73-
npx prettier -v
74-
npx prettier --check .
75+
pnpm dlx prettier -v
76+
pnpm dlx prettier --check .

.github/workflows/set-backlog-fields.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- name: Generate token
1313
id: generate_token
14-
uses: tibdex/github-app-token@v1.7
14+
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
1515
with:
1616
app_id: ${{ secrets.LFPROJECTBOARDAUTOMATION_APP_ID }}
1717
private_key: ${{ secrets.LFPROJECTBOARDAUTOMATION_PRIVATE_KEY }}

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
npx lint-staged
4+
pnpm exec lint-staged

.vscode/tasks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"label": "npm install",
88
"type": "shell",
99
"windows": {
10-
"command": "bash -c 'npm install'"
10+
"command": "bash -c 'pnpm install'"
1111
},
12-
"command": "npm install",
12+
"command": "pnpm install",
1313
"presentation": {
1414
"reveal": "silent"
1515
},

Makefile

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
.PHONY: start
44
start: build
5-
# starts the entire runtime infrastructure
5+
# starts the entire runtime infrastructure
66
docker compose up -d ssl
77

88
.PHONY: dev
@@ -14,22 +14,22 @@ ui-builder:
1414

1515
.PHONY: e2e-tests-ci
1616
e2e-tests-ci:
17-
npm ci
18-
$(MAKE) e2e-app
19-
npx playwright install ${browser} --with-deps
20-
npx playwright test -c ./test/e2e/playwright.config.ts --project=${browser} --shard=${shard}
17+
pnpm install
18+
"$(MAKE)" e2e-app
19+
pnpm exec playwright install ${browser} --with-deps
20+
pnpm exec playwright test -c ./test/e2e/playwright.config.ts --project=${browser} --shard=${shard}
2121

2222
.PHONY: e2e-tests
2323
e2e-tests: ui-builder
24-
npm install
25-
$(MAKE) e2e-app
26-
npx playwright install chromium firefox
27-
npx playwright test -c ./test/e2e/playwright.config.ts $(params)
24+
pnpm install
25+
"$(MAKE)" e2e-app
26+
pnpm exec playwright install chromium firefox
27+
pnpm exec playwright test -c ./test/e2e/playwright.config.ts $(params)
2828

2929
.PHONY: e2e-app
3030
e2e-app:
31-
# delete any cached session storage state files if the service isn't running
32-
docker compose ps e2e-app > /dev/null 2>&1 || $(MAKE) clean-test
31+
# delete any cached session storage state files if the service isn't running
32+
docker compose ps e2e-app > /dev/null 2>&1 || "$(MAKE)" clean-test
3333
docker compose up -d e2e-app --build
3434

3535
.PHONY: unit-tests
@@ -45,9 +45,9 @@ unit-tests-ci:
4545

4646
.PHONY: build
4747
build:
48-
npm install
48+
pnpm install
4949

50-
# ensure we start with a clean ui-dist volume for every build
50+
# ensure we start with a clean ui-dist volume for every build
5151
-docker volume rm web-languageforge_lf-ui-dist 2>/dev/null
5252

5353
docker compose build mail app lfmerge ld-api next-proxy next-app
@@ -83,11 +83,11 @@ clean:
8383

8484
.PHONY: clean-test
8585
clean-test:
86-
cd test/e2e && npx rimraf test-storage-state
86+
cd test/e2e && pnpm dlx rimraf test-storage-state
8787

8888
.PHONY: clean-powerwash
8989
clean-powerwash: clean
90-
$(MAKE) clean-test
90+
"$(MAKE)" clean-test
9191
docker system prune -f --volumes
9292
- docker rmi -f `docker images -q "lf-*"` sillsdev/web-languageforge:base-php
9393
docker builder prune -f

0 commit comments

Comments
 (0)