Skip to content

Commit

Permalink
added ci test
Browse files Browse the repository at this point in the history
Let's see if this docker image can run that script
  • Loading branch information
Bullrich committed Mar 19, 2024
1 parent 23ad504 commit 846c7aa
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI
on:
push:
branches: [master]
jobs:
container-test-job:
runs-on: ubuntu-latest
container:
image: node:18
env:
NODE_ENV: development
ports:
- 80
volumes:
- my_docker_volume:/volume_mount
options: --cpus 1
steps:
- uses: actions/checkout@v4.1.1
- name: LS everything
run: ls -la
- name: Tell node version
run: node -v
- name: Run script
run: node index.js
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const greet = (name) => {
console.log("Hello", name);
}

greet("World");

0 comments on commit 846c7aa

Please sign in to comment.