From 846c7aa2190e6a7326e5098af6b8bf3303f2783f Mon Sep 17 00:00:00 2001 From: Javier Bullrich Date: Tue, 19 Mar 2024 16:58:47 +0100 Subject: [PATCH] added ci test Let's see if this docker image can run that script --- .github/workflows/ci-test.yml | 24 ++++++++++++++++++++++++ index.js | 5 +++++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/ci-test.yml create mode 100644 index.js diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml new file mode 100644 index 0000000..22746f2 --- /dev/null +++ b/.github/workflows/ci-test.yml @@ -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 diff --git a/index.js b/index.js new file mode 100644 index 0000000..e714c9b --- /dev/null +++ b/index.js @@ -0,0 +1,5 @@ +const greet = (name) => { + console.log("Hello", name); +} + +greet("World");