Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5aa5fa3

Browse files
committed
initial
0 parents  commit 5aa5fa3

File tree

7 files changed

+558
-0
lines changed

7 files changed

+558
-0
lines changed

.github/workflows/nodejs.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'build-test'
2+
on: # rebuild any PRs and main branch changes
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
- 'releases/*'
8+
9+
jobs:
10+
build: # make sure build/ci work properly
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- run: |
15+
yarn
16+
test: # make sure the action works on a clean machine without building
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
os: [ubuntu-latest, macOS-latest, windows-latest]
21+
runs-on: ${{ matrix.os }}
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: ./
25+
id: cpu-count
26+
- run: echo ${{ steps.cpu-count.outputs.count }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: "CPU Core Count"
2+
description: "Get the number of available cores on the runner"
3+
outputs:
4+
count:
5+
description: "The count of available CPU cores"
6+
runs:
7+
using: "node12"
8+
main: "dist/index.js"

0 commit comments

Comments
 (0)