mirror of
https://github.com/ilyakooo0/deriving-openapi3.git
synced 2024-08-16 05:50:24 +03:00
Started CI
This commit is contained in:
parent
afcdc4c7bc
commit
94d936f46e
45
.github/workflows/build.yaml
vendored
Normal file
45
.github/workflows/build.yaml
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
name: Github Action Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
release:
|
||||
types: [prereleased]
|
||||
|
||||
jobs:
|
||||
check_versions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Check library version
|
||||
if: github.event_name == 'release'
|
||||
run: |
|
||||
if [ "$(yq eval ".version" package.yaml)" != "${{ github.event.release.tag_name }}" ]; then
|
||||
echo "::error file=action.yaml::Library version does not match release version."
|
||||
exit 1
|
||||
fi
|
||||
Linux:
|
||||
needs: check_versions
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
|
||||
- name: Cache
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: |
|
||||
~/.stack
|
||||
.stack-work
|
||||
key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}
|
||||
${{ runner.os }}-stack
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: |
|
||||
stack build
|
@ -1,5 +1,5 @@
|
||||
name: deriving-openapi3
|
||||
version: 0.1.0
|
||||
version: 0.1.0.0
|
||||
synopsis: DerivingVia for OpenAPI 3
|
||||
# description:
|
||||
maintainer: Ilya Kostyuchenko <ilyakooo0@gmail.com>
|
||||
|
Loading…
Reference in New Issue
Block a user