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
- Host: GitHub
- URL: https://github.com/znsio/specmatic-github-workflows
- Owner: znsio
- License: mit
- Created: 2025-02-22T02:41:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-16T16:34:27.000Z (about 1 year ago)
- Last Synced: 2025-04-17T00:08:03.188Z (about 1 year ago)
- Language: Ruby
- Size: 35.2 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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}
```