Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Oct 20, 2020
0 parents commit 5aa5fa3
Show file tree
Hide file tree
Showing 7 changed files with 558 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'build-test'
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
- 'releases/*'

jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
yarn
test: # make sure the action works on a clean machine without building
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: ./
id: cpu-count
- run: echo ${{ steps.cpu-count.outputs.count }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: "CPU Core Count"
description: "Get the number of available cores on the runner"
outputs:
count:
description: "The count of available CPU cores"
runs:
using: "node12"
main: "dist/index.js"
Loading

0 comments on commit 5aa5fa3

Please sign in to comment.