30 lines
No EOL
596 B
YAML
30 lines
No EOL
596 B
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: docker
|
|
container:
|
|
image: node:22-bookworm
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
|
|
- name: Show environment
|
|
run: |
|
|
echo "Branch: ${{ github.ref_name }}"
|
|
echo "Commit: ${{ github.sha }}"
|
|
node --version
|
|
|
|
- name: Run a fake test
|
|
run: |
|
|
echo "Pretending to test..."
|
|
test 1 -eq 1 && echo "OK ✅" |