Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI

on:
push:
branches: [ main, mgrama-gmd-upgraded-garbanzo ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
- run: npm ci
- run: npm test
env:
CI: true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
.env
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,15 @@ deployed to GitHub Pages by the [`web-build-and-gh-pages-deploy.yml`](#what-is-i

Contributions are welcome.
Open an issue or PR with improvements, fixes, or suggestions.

---

## GitHub Actions Lab (added)

This repository now includes a minimal "actions-lab" example to follow the Microsoft Learn module "Explore actions flow":

- package.json and index.js: a trivial Node.js test script
- .github/workflows/ci.yml: a CI workflow that runs `npm test` on push and PRs

See the top-level README for the rest of the project. To trigger the lab workflow push to this branch or open a PR targeting main.

2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Simple test script used by the CI workflow
console.log('Test script: OK');
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "actions-lab",
"version": "0.1.0",
"private": true,
"scripts": {
"test": "node index.js"
}
}