Skip to content

Bump dawidd6/action-download-artifact from 9 to 10 in /.github/workflows #1572

Bump dawidd6/action-download-artifact from 9 to 10 in /.github/workflows

Bump dawidd6/action-download-artifact from 9 to 10 in /.github/workflows #1572

name: Draft JSON Integration Tests
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
deployments: read
packages: none
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: 1.22
- name: make
run: make
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: helm-skaffold
path: ./test/skaffold.yaml
if-no-files-found: error
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: draft-binary
path: ./draft
if-no-files-found:
error
info:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: draft-binary
- run: chmod +x ./draft
- run: |
mkdir ./langtest
- run: |
./draft info > ./info.json
echo "Draft Info JSON schema:"
cat test/info_schema.json
echo "Draft Info JSON:"
cat info.json
- name: Validate JSON
run: |
npm install -g ajv-cli
ajv validate -s test/info_schema.json -d info.json