Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

store build-marketplace action in main to get dependabot updates #749

Merged
merged 2 commits into from
Oct 18, 2023
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
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ updates:
directory: "/"
schedule:
interval: "daily"
# Maintain dependencies for GitHub composite Actions (/.github/actions)
# Waiting for supporting wildcards see https://github.com/dependabot/dependabot-core/issues/5137
- package-ecosystem: "github-actions"
directory: "/.github/actions/azure-login"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/.github/actions/do-login"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/.github/actions/docker-build"
schedule:
interval: "daily"
- package-ecosystem: "maven"
directory: "/"
schedule:
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/build-marketplace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Marketplace build

on:
push:
branches: [ marketplace ]
pull_request:
branches: [ marketplace ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

- uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
java-version: '21'
distribution: 'temurin'
cache: 'maven'

- name: Build api
run: ./mvnw --batch-mode clean install -Padoptium

- name: Build app
run: |
cd marketplace/
../mvnw --batch-mode clean install

- name: Upload yaml schema
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: schema.yaml
path: marketplace/adoptium-marketplace-schema/target/generated/openapi.yaml

- name: Upload json schema
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: schema.json
path: marketplace/adoptium-marketplace-schema/target/generated/openapi.json

- name: Upload example data
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: example.json
path: marketplace/adoptium-marketplace-schema-tests/src/test/resources/net/adoptium/marketplace/schema/example.json