Skip to content

Commit

Permalink
fix: yamlfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jac18281828 committed Jan 5, 2025
1 parent 618694e commit 543f917
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 9 deletions.
26 changes: 26 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
{
"name": "Existing Dockerfile",
"build": {
// Sets the run context to one level up instead of the .devcontainer folder.
"context": "..",
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"dockerfile": "../Dockerfile"
}

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Uncomment the next line to run commands after the container is created.
// "postCreateCommand": "cat /etc/os-release",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "devcontainer"
}
16 changes: 8 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

version: 2
updates:
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly
updates:
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: weekly
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: weekly
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
context: .
platforms: linux/amd64
push: true
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=Anagram Solana development container
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=Anagram Solana development container
build-args: |
VERSION=${{ github.ref_name }}
tags: |
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/yamlfmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Yamlfmt
on:
push:
pull_request:
workflow_dispatch:
jobs:
run-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.4
- name: Install yamlfmt
run: |
go install github.com/google/yamlfmt/cmd/yamlfmt@latest
strip $(which yamlfmt)
- name: Run yamlfmt
run: yamlfmt -lint .github/*.yml .github/workflows/*.yml

0 comments on commit 543f917

Please sign in to comment.