Skip to content

Commit

Permalink
chore: Update O'Reilly Artifact Demo workflow name
Browse files Browse the repository at this point in the history
  • Loading branch information
timothywarner committed Aug 7, 2024
1 parent 621fe78 commit 59c201c
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/oreilly-artifact-demo.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: O'Reilly Artifact Demo
name: O'Reilly Artifact Demo Test

on:
push:
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/oreilly-node-app-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: OReilly Test and Build Node App Workflow

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Install dependencies
run: npm ci
working-directory: ./node-app

- name: Run tests
run: npm test
working-directory: ./node-app

- name: Build app
run: npm run build
working-directory: ./node-app

- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: node-app-build
path: ./node-app/dist

download:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: node-app-build
path: ./node-app/dist

- name: Display artifact contents
run: ls -la ./node-app/dist

0 comments on commit 59c201c

Please sign in to comment.