Skip to content
Merged
Show file tree
Hide file tree
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
49 changes: 0 additions & 49 deletions .drone.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
pull_request:
branches:
- main
workflow_dispatch:

concurrency:
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

env:
IMAGE_TAG: openapi-ci:local
DOCKER_BUILDKIT: "1"

jobs:
openapi:
name: OpenAPI (Docker)
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v6

- uses: docker/setup-buildx-action@v3

- uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
target: builder
push: false
load: true
tags: ${{ env.IMAGE_TAG }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Validate
run: docker run --rm ${{ env.IMAGE_TAG }} openapi-generator-cli validate -i api.yaml

- name: Generate
run: docker run --rm ${{ env.IMAGE_TAG }} openapi-generator-cli generate -i api.yaml -g openapi-yaml
Loading