Skip to content
Draft
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
10 changes: 10 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
]
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/dist/** linguist-generated=true
33 changes: 33 additions & 0 deletions .github/workflows/test-actions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: test-actions

on:
pull_request:
branches: [main]

jobs:
test-infra-example:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: ./infra/example
id: custom-action
with:
in: my-input
- run: echo "Success!"
shell: bash
if: steps.custom-action.outputs.out == 'example-output'
- run: echo "Failure" && exit 1
shell: bash
if: steps.custom-action.outputs.out != 'example-output'

test-infra-setup:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: ./infra/setup
id: infra-setup
with:
cloud: openstack
stack-name: test
- shell: bash
run: ls ${{ steps.infra-setup.outputs.workdir }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules/
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"semi": true,
"printWidth": 88
}
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,31 @@
# actions

Set of GitHub Actions actions used a cross the Scality organization.
Set of GitHub Actions actions used across the Scality organization.

## action-crons
Call different workflows running on defined hour with specific arguments.

## actions-docker-upload
Bunch of step to upload an image speed up with `actions@cache`.

---

Some custom Javascript actions are built from this repository, using Typescript.

## `infra` actions

A collection of actions to provision cloud infrastructure for installing and
testing Scality products.

### `scality/actions/infra/example`

**(temporary)** _An example action demonstrating how these actions will be built,
tested, and used._

Inputs:

- `in`: an input string which will be logged

Outputs:

- `out`: fixed string (value `"example-output"`)
1 change: 1 addition & 0 deletions infra/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build/
16 changes: 16 additions & 0 deletions infra/example/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'example'
description: An example action

inputs:
in:
description: An arbitrary input string
type: string
required: true

outputs:
out:
description: A fixed output

runs:
using: 'node16'
main: './dist/index.js'
Loading