Skip to content
Closed
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
46 changes: 46 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: ci
on:
workflow_dispatch: # Allow manual triggering
push:
branches:
- main
- release/*
- snapshot/*
tags:
- v*
pull_request:
merge_group:
jobs:
test-perses-ci:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Call Perses-CI
uses: ./
with:
version: ""

- name: Validate code checkout
run: |
if [ ! -d ".github/perses-ci" ]; then
echo "Error: Source code was not checked out at the expected location."
exit 1
fi

if [ ! -f ".github/perses-ci/actions/setup_environment/action.yaml" ]; then
echo "Error: Expected file is missing."
exit 1
fi

test-install-percli:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install percli
uses: ./actions/install_percli
with:
cli_version: "latest"
23 changes: 0 additions & 23 deletions .github/workflows/test_install_percli.yaml

This file was deleted.

6 changes: 5 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: Perses-CI
description: An action used by the Perses project to share github actions.
inputs:
version:
description: "Version of perses/github-actions to use"
default: ""
runs:
using: composite
steps:
- uses: actions/checkout@v4
with:
repository: 'perses/github-actions'
path: '.github/perses-ci'
ref: v0.5.2
ref: ${{ inputs.version }}