forked from loafle/openapi-generator-original
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
42 lines
1.5 KiB
YAML
42 lines
1.5 KiB
YAML
name: Samples Julia
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'samples/client/petstore/julia/**'
|
|
- 'samples/server/petstore/julia/**'
|
|
pull_request:
|
|
paths:
|
|
- 'samples/client/petstore/julia/**'
|
|
- 'samples/server/petstore/julia/**'
|
|
|
|
jobs:
|
|
tests-julia:
|
|
name: Tests Julia
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: julia-actions/setup-julia@v2
|
|
with:
|
|
version: 1.8
|
|
arch: x64
|
|
- name: Test
|
|
shell: bash
|
|
working-directory: 'samples'
|
|
run: |
|
|
currdir=`pwd`
|
|
# Using a specific version of OpenAPI.jl helps avoid introducing version inter-dependencies
|
|
# and allows breaking changes to be done in either repos independently
|
|
# Using develop mode to install package so that it is easier to modify the package test files
|
|
julia -e "using Pkg; Pkg.develop(\"OpenAPI\");"
|
|
cd ~/.julia/dev/OpenAPI
|
|
git checkout v0.2.0
|
|
cd $currdir
|
|
rm -rf ~/.julia/dev/OpenAPI/test/client/openapigenerator_petstore_v3/petstore
|
|
rm -rf ~/.julia/dev/OpenAPI/test/server/openapigenerator_petstore_v3/petstore
|
|
cp -r client/petstore/julia ~/.julia/dev/OpenAPI/test/client/openapigenerator_petstore_v3/petstore
|
|
cp -r server/petstore/julia ~/.julia/dev/OpenAPI/test/server/openapigenerator_petstore_v3/petstore
|
|
# setting this env runs only the tests relevant to the openapi-generator repo
|
|
export OPENAPI_GENERATOR=true
|
|
julia -e "using Pkg; Pkg.test(\"OpenAPI\");"
|