Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ping-ke committed Aug 19, 2024
1 parent 87a1fe7 commit 4159a46
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Integration Test
on: [push]

jobs:
es-node-integration-test:
runs-on: self-hosted
timeout-minutes: 2880

steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'

- name: Test
run: |
cd ./integration_tests/test
npm install --force
go build
./test
./test.js
./test 1
11 changes: 11 additions & 0 deletions integration_tests/test/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package main

import "os"

func main() {
if len(os.Args) == 0 {
return
} else {
os.Exit(1)
}
}
14 changes: 14 additions & 0 deletions integration_tests/test/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// javascript
const core = require('@actions/core');

var errMessage = "error message ++++++++++++++"

console.log("test:", "starting");

core.info('test started')

core.setFailed(`Action failed with error ${errMessage}`);

console.log("test:", "ending");

core.info('test ended');

0 comments on commit 4159a46

Please sign in to comment.