Skip to content

Testing (Dockerfile actions). #13

Testing (Dockerfile actions).

Testing (Dockerfile actions). #13

name: Test JavaScript Action (JS Action)
on:
push:
branches: [ main, iain-changes ]
pull_request:
branches: [ main, iain-changes ]
jobs:
test_js_workflow:
name: Test JavaScript Workflow
runs-on: ubuntu-latest
steps:
# To use this repository's private action,
# you must check out the repository
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm
- name: Hello world action step
uses: ./ # Uses an action in the root directory
id: hello
with:
who-to-greet: 'Mona the Octocat'
- name: Install Dependencies
id: install
run: npm ci
- name: Test
id: npm-ci-test
run: npm run ci-test
# # Use the output from the `hello` step
# - name: Get the output time
# run: echo "The time was ${{ steps.hello.outputs.time }}"