Skip to content

Commit ea5cba5

Browse files
authored
Merge pull request #49 from tarosky/issue/48
Update UglifyJS Close #48.
2 parents 5094cac + ce9ae3f commit ea5cba5

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

.github/workflows/build.yml

+11-8
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
-eux -c "$cmd"
8181
- uses: actions/upload-artifact@main
8282
with:
83-
name: artifact
83+
name: artifact-bootstrap
8484
path: work/bootstrap
8585
- uses: actions/upload-artifact@main
8686
with:
@@ -95,7 +95,7 @@ jobs:
9595
- run: uglifyjs/run-nexe
9696
- uses: actions/upload-artifact@main
9797
with:
98-
name: artifact
98+
name: artifact-uglifyjs
9999
path: work/uglifyjs
100100

101101
test:
@@ -105,7 +105,7 @@ jobs:
105105
- uses: actions/checkout@main
106106
- uses: actions/download-artifact@main
107107
with:
108-
name: artifact
108+
name: artifact-uglifyjs
109109
path: work
110110
- run: chmod +x work/uglifyjs
111111
- uses: actions/setup-go@main
@@ -122,7 +122,7 @@ jobs:
122122
TEST_SECRET_ACCESS_KEY: ${{secrets.AWS_TEST_SECRET_ACCESS_KEY}}
123123
- run: go get github.com/jstemmer/go-junit-report
124124
- run: go install github.com/jstemmer/go-junit-report
125-
- run: go test -v ./bootstrap 2>&1 | tee work/test.log
125+
- run: go test -v ./imgconv 2>&1 | tee work/test.log
126126
- run: go-junit-report < work/test.log > work/report.xml
127127
- uses: actions/upload-artifact@main
128128
with:
@@ -143,12 +143,15 @@ jobs:
143143
steps:
144144
- uses: actions/download-artifact@main
145145
with:
146-
name: artifact
146+
name: artifact-bootstrap
147+
- uses: actions/download-artifact@main
148+
with:
149+
name: artifact-uglifyjs
147150
- run: chmod +x bootstrap uglifyjs
148151
- run: zip -j imgconv.zip ./bootstrap ./uglifyjs
149152
- uses: actions/upload-artifact@main
150153
with:
151-
name: artifact
154+
name: artifact-imgconv
152155
path: imgconv.zip
153156

154157
release:
@@ -160,13 +163,13 @@ jobs:
160163
steps:
161164
- uses: actions/download-artifact@main
162165
with:
163-
name: artifact
166+
name: artifact-imgconv
164167
- uses: actions/download-artifact@main
165168
with:
166169
name: build-number
167170
- name: set BUILD_NUMBER
168171
run: echo "BUILD_NUMBER=$(< ./BUILD_NUMBER)" >> $GITHUB_ENV
169-
- name: set BUILD_NUMBER
172+
- name: set ASSET_NAME
170173
run: echo "ASSET_NAME=imgconv.build-$BUILD_NUMBER-awslambda-provided-amd64.zip" >> $GITHUB_ENV
171174
- name: rename
172175
run: cp imgconv.zip "$ASSET_NAME"

uglifyjs/build-image

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -eu
44

55
# shellcheck disable=SC1091
66
source uglifyjs/envs.sh
7-
exec docker-compose -f uglifyjs/docker-compose.yml build
7+
exec docker compose -f uglifyjs/docker-compose.yml build

uglifyjs/envs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ export USER_ID
55
GROUP_ID="$(id -g)"
66
export GROUP_ID
77
export NODEJS_VERSION="${NODEJS_VERSION:-14.15.3}"
8-
export UGLIFYJS_VERSION="${UGLIFYJS_VERSION:-3.17.4}"
8+
export UGLIFYJS_VERSION="${UGLIFYJS_VERSION:-3.18.0}"

uglifyjs/run-nexe

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -eu
44

55
# shellcheck disable=SC1091
66
source uglifyjs/envs.sh
7-
exec docker-compose -f uglifyjs/docker-compose.yml run --rm nexe
7+
exec docker compose -f uglifyjs/docker-compose.yml run --rm nexe

0 commit comments

Comments
 (0)