Skip to content

Commit 7400285

Browse files
committed
[TEST]
1 parent e362bbb commit 7400285

File tree

2 files changed

+38
-16
lines changed

2 files changed

+38
-16
lines changed

.github/workflows/test.yml

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,44 @@
11
on: [push]
22

33
jobs:
4-
hello_world_job:
4+
job:
5+
name: Test
56
runs-on: ubuntu-latest
6-
name: A job to say hello
77
steps:
8-
- name: Hello world action step
9-
id: hello
10-
uses: panticmilos/[email protected]
8+
- name: Env
9+
run: env
10+
- name: Event data
11+
run: cat $GITHUB_EVENT_PATH
12+
- name: Check
13+
env:
14+
TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
run: |
16+
which node
17+
node --version
18+
echo "RUNNER_TOOL_CACHE=$RUNNER_TOOL_CACHE"
19+
ls "$RUNNER_TOOL_CACHE/node"
20+
curl https://api.github.com/rate_limit -u "token:$TOKEN"
21+
- uses: actions/setup-node@v3
1122
with:
12-
who-to-greet: 'Mona the Octocat'
13-
# Use the output from the `hello` step
14-
- name: Get the output time
15-
run: echo "The time was ${{ steps.hello.outputs.time }}"
23+
node-version: ^16.13.2
24+
- name: Check
25+
env:
26+
TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
run: |
28+
which node
29+
node --version
30+
echo "RUNNER_TOOL_CACHE=$RUNNER_TOOL_CACHE"
31+
ls "$RUNNER_TOOL_CACHE/node"
32+
curl https://api.github.com/rate_limit -u "token:$TOKEN"
33+
- uses: actions/setup-node@v3
34+
with:
35+
node-version: 16.13.2
36+
- name: Check
37+
env:
38+
TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
run: |
40+
which node
41+
node --version
42+
echo "RUNNER_TOOL_CACHE=$RUNNER_TOOL_CACHE"
43+
ls "$RUNNER_TOOL_CACHE/node"
44+
curl https://api.github.com/rate_limit -u "token:$TOKEN"

src/main.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ export async function run() {
2020
let arch = core.getInput('architecture');
2121
const cache = core.getInput('cache');
2222

23-
const nameToGreet = core.getInput('who-to-greet');
24-
console.log(`Hello ${nameToGreet}!`);
25-
26-
const time = (new Date()).toTimeString();
27-
core.setOutput("time", "30");
28-
console.log("test");
29-
3023
const payload = JSON.stringify(github.context.payload, undefined, 2)
3124
console.log(`The event payload: ${payload}`);
3225

0 commit comments

Comments
 (0)