Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,40 @@ jobs:
chmod u+x ./wasm/build-wasm.sh
./wasm/build-wasm.sh

test_docker_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: docker/setup-buildx-action@v3
id: buildx
with:
install: true

- uses: docker/metadata-action@v5
id: meta
env:
DOCKER_METADATA_PR_HEAD_SHA: "true"
with:
images: johnnymorganz/stylua
tags: |
type=sha

- uses: docker/build-push-action@v5
with:
load: true
context: .
file: Dockerfile
builder: ${{ steps.buildx.outputs.name }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha

- name: Test
run: |
docker run --rm ${{ steps.meta.outputs.tags }} /stylua --help

lint:
runs-on: ubuntu-latest
steps:
Expand Down
Loading