Skip to content

Commit

Permalink
Merge pull request #49 from tarosky/issue/48
Browse files Browse the repository at this point in the history
Update UglifyJS
Close #48.
  • Loading branch information
harai authored Jul 3, 2024
2 parents 5094cac + ce9ae3f commit ea5cba5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
-eux -c "$cmd"
- uses: actions/upload-artifact@main
with:
name: artifact
name: artifact-bootstrap
path: work/bootstrap
- uses: actions/upload-artifact@main
with:
Expand All @@ -95,7 +95,7 @@ jobs:
- run: uglifyjs/run-nexe
- uses: actions/upload-artifact@main
with:
name: artifact
name: artifact-uglifyjs
path: work/uglifyjs

test:
Expand All @@ -105,7 +105,7 @@ jobs:
- uses: actions/checkout@main
- uses: actions/download-artifact@main
with:
name: artifact
name: artifact-uglifyjs
path: work
- run: chmod +x work/uglifyjs
- uses: actions/setup-go@main
Expand All @@ -122,7 +122,7 @@ jobs:
TEST_SECRET_ACCESS_KEY: ${{secrets.AWS_TEST_SECRET_ACCESS_KEY}}
- run: go get github.com/jstemmer/go-junit-report
- run: go install github.com/jstemmer/go-junit-report
- run: go test -v ./bootstrap 2>&1 | tee work/test.log
- run: go test -v ./imgconv 2>&1 | tee work/test.log
- run: go-junit-report < work/test.log > work/report.xml
- uses: actions/upload-artifact@main
with:
Expand All @@ -143,12 +143,15 @@ jobs:
steps:
- uses: actions/download-artifact@main
with:
name: artifact
name: artifact-bootstrap
- uses: actions/download-artifact@main
with:
name: artifact-uglifyjs
- run: chmod +x bootstrap uglifyjs
- run: zip -j imgconv.zip ./bootstrap ./uglifyjs
- uses: actions/upload-artifact@main
with:
name: artifact
name: artifact-imgconv
path: imgconv.zip

release:
Expand All @@ -160,13 +163,13 @@ jobs:
steps:
- uses: actions/download-artifact@main
with:
name: artifact
name: artifact-imgconv
- uses: actions/download-artifact@main
with:
name: build-number
- name: set BUILD_NUMBER
run: echo "BUILD_NUMBER=$(< ./BUILD_NUMBER)" >> $GITHUB_ENV
- name: set BUILD_NUMBER
- name: set ASSET_NAME
run: echo "ASSET_NAME=imgconv.build-$BUILD_NUMBER-awslambda-provided-amd64.zip" >> $GITHUB_ENV
- name: rename
run: cp imgconv.zip "$ASSET_NAME"
Expand Down
2 changes: 1 addition & 1 deletion uglifyjs/build-image
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -eu

# shellcheck disable=SC1091
source uglifyjs/envs.sh
exec docker-compose -f uglifyjs/docker-compose.yml build
exec docker compose -f uglifyjs/docker-compose.yml build
2 changes: 1 addition & 1 deletion uglifyjs/envs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ export USER_ID
GROUP_ID="$(id -g)"
export GROUP_ID
export NODEJS_VERSION="${NODEJS_VERSION:-14.15.3}"
export UGLIFYJS_VERSION="${UGLIFYJS_VERSION:-3.17.4}"
export UGLIFYJS_VERSION="${UGLIFYJS_VERSION:-3.18.0}"
2 changes: 1 addition & 1 deletion uglifyjs/run-nexe
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -eu

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

0 comments on commit ea5cba5

Please sign in to comment.