Skip to content

Commit

Permalink
Update and rename understanding-github-actions.md to Node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chamod5055 authored Oct 20, 2024
1 parent 0032d7e commit beca684
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 108 deletions.
33 changes: 33 additions & 0 deletions content/actions/about-github-actions/Node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Node.js CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- name: Checkout repository
uses: actions/checkout@v3

Check failure on line 22 in content/actions/about-github-actions/Node.js.yml

View workflow job for this annotation

GitHub Actions / lint-content

GitHub-owned action references should not be hardcoded

The string actions/checkout@v3 is hardcoding a reference to a GitHub-owned action. You should use the reusables for the action. e.g. {% data reusables.actions.action-checkout %}.

- name: Set up Node.js
uses: actions/setup-node@v3

Check failure on line 25 in content/actions/about-github-actions/Node.js.yml

View workflow job for this annotation

GitHub Actions / lint-content

GitHub-owned action references should not be hardcoded

The string actions/setup-node@v3 is hardcoding a reference to a GitHub-owned action. You should use the reusables for the action. e.g. {% data reusables.actions.action-checkout %}.
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Start application
run: npm start
108 changes: 0 additions & 108 deletions content/actions/about-github-actions/understanding-github-actions.md

This file was deleted.

0 comments on commit beca684

Please sign in to comment.