Skip to content

Commit

Permalink
Add workflow (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianrath authored Dec 31, 2023
2 parents 14d081a + 0ec049a commit 52940e4
Show file tree
Hide file tree
Showing 7 changed files with 1,869 additions and 124 deletions.
47 changes: 47 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": [
"tsconfig.json"
]
},
"overrides": [
{
"files": [
"*.ts"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowedNames": [
"ignoredFunctionName",
"ignoredMethodName"
]
}
],
"@typescript-eslint/no-shadow": "error"
}
},
{
"files": [
"*.html"
],
"rules": {}
}
]
}
11 changes: 11 additions & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
on: [push]

jobs:
build-and-publish:
runs-on: ubuntu-latest
name: My workflow
steps:
- name: Execute Action Graph
uses: actionforge/[email protected]
with:
graph_file: build-and-publish.yml
58 changes: 58 additions & 0 deletions .github/workflows/graphs/build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
entry: gh-start
executions:
- src:
node: gh-start
port: exec-on-push
dst:
node: github-com-actions-checkout-coconut-coconut-banana
port: exec
- src:
node: github-com-actions-checkout-coconut-coconut-banana
port: exec
dst:
node: github-com-actions-setup-node-cherry-grape-banana
port: exec
- src:
node: github-com-actions-setup-node-cherry-grape-banana
port: exec
dst:
node: run-v1-strawberry-cat-blueberry
port: exec
connections: []
nodes:
- id: gh-start
type: gh-start@v1
position:
x: 100
y: 100
settings:
folded: false
- id: github-com-actions-checkout-coconut-coconut-banana
type: github.com/actions/checkout
position:
x: 670
y: 230
settings:
folded: false
- id: github-com-actions-setup-node-cherry-grape-banana
type: github.com/actions/setup-node
position:
x: 1300
y: 360
inputs:
node-version: v20.10.0
settings:
folded: false
- id: run-v1-strawberry-cat-blueberry
type: run@v1
position:
x: 1810
y: 450
inputs:
script: |-
npm install
npm run lint
settings:
folded: false
registries: []
description: ''
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ For a full introduction check out the [Actionforge Documentation](https://www.ac

<!-- start usage -->
```yaml
- uses: .
- uses: actionforge/[email protected]
with:
# The name of the graph file located in the `.github/workflows/graphs` directory.
# This file defines the Actionforge Action Graph to be executed.
Expand Down
Loading

0 comments on commit 52940e4

Please sign in to comment.