An open API service indexing awesome lists of open source software.

https://github.com/znsio/specmatic-github-workflows

Contains workflows that are shared across specmatic repos
https://github.com/znsio/specmatic-github-workflows

Last synced: about 1 year ago
JSON representation

Contains workflows that are shared across specmatic repos

Awesome Lists containing this project

README

          

# Github workflows for specmatic

## Usage

1. Enable dependabot and dependency graph in your project settings at `https://github.com/ORG/REPO/settings/security_analysis`
2. Create the following workflow(s)

1. Basic build/test using java 17 and `./gradlew check assemble`

```yaml
# .github/workflows/gradle.yml
name: Java Build with Gradle

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write # This is required so that the dependency check can push dependency graph to the github repository
steps:
- uses: znsio/specmatic-github-workflows/action-build-gradle@main
with:
gradle-extra-args: "-Pfoo=bar" # pass any extra gradle args here
```

## Scripts in the bin dir

1. For the fetch scripts, create a `~/.m2/settings.xml` file. Be sure to define `SPECMATIC_GITHUB_USER` and `SPECMATIC_GITHUB_TOKEN` in your shell.

```xml




true

default


central
https://repo.maven.apache.org/maven2


confluent
https://packages.confluent.io/maven


specmaticPrivate
https://maven.pkg.github.com/znsio/specmatic-private-maven-repo






specmaticPrivate
${env.SPECMATIC_GITHUB_USER}
${env.SPECMATIC_GITHUB_TOKEN}



```