diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e69de29..8d5c5cf 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -0,0 +1,36 @@ +name: Test + +on: + pull_request: + +jobs: + build: + name: Conventional pull request names + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + build-test: + name: Build & Test + if: ${{ github.event.pull_request.draft == false }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - name: Set up Go + uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 + with: + go-version-file: "go.mod" + - name: Set up Node + uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 + with: + node-version: "18.x" + registry-url: "https://registry.npmjs.org" + - name: Set up gotestfmt + run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest + - name: Build + run: go build ./... + - run: go test -json -v -p 1 ./... | gotestfmt + - name: build web + run: cd web && pnpm install && pnpm build diff --git a/web/src/Playground.tsx b/web/src/Playground.tsx index 8edb93f..12e6c21 100644 --- a/web/src/Playground.tsx +++ b/web/src/Playground.tsx @@ -149,7 +149,7 @@ function Playground() { OpenAPI Overlay Specification {" "} - lets you update arbitrary values in an YAML document using{" "} + lets you update arbitrary values in a YAML document using{" "} jsonpath