mirror of
https://github.com/actions/setup-node.git
synced 2025-04-24 04:20:49 +00:00
Create mynodeaction.yml
This commit is contained in:
parent
802632921f
commit
90651f685f
1 changed files with 28 additions and 0 deletions
28
.github/workflows/mynodeaction.yml
vendored
Normal file
28
.github/workflows/mynodeaction.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
name: Node.js CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4.2.2
|
||||||
|
|
||||||
|
- name: Setup Node.js environment
|
||||||
|
uses: actions/setup-node@v4.2.0
|
||||||
|
with:
|
||||||
|
node-version: '14' # Specify the Node.js version you need
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: npm test
|
Loading…
Add table
Reference in a new issue