From 49e281a9bf83f96aeaf38f66e5c6446fbde83671 Mon Sep 17 00:00:00 2001 From: yasin Date: Tue, 23 Jul 2024 00:23:04 +0200 Subject: [PATCH 1/2] Added an initial version of the node workflow, commiting in order to test its functionality --- .github/workflows/npm.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/npm.yml diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml new file mode 100644 index 00000000..820adfd5 --- /dev/null +++ b/.github/workflows/npm.yml @@ -0,0 +1,22 @@ +name: Node.js CI + +on: + # temp for testing puposes + push + +jobs: + build: + name: Node.js CI + # for consistency with the Laravel CI + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + # unsure of the version we would want here but for testing purposes I'm using my local version + node-version: '22.3.0' + - name: Install packages + run: npm ci + - name: Run node + run: npm run dev \ No newline at end of file From 1c7fc76511f95d5447a3c4577ab1be692952769d Mon Sep 17 00:00:00 2001 From: Kamieljv Date: Fri, 6 Sep 2024 15:28:17 +0200 Subject: [PATCH 2/2] Updated 'on' rules --- .github/workflows/npm.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 820adfd5..e0ff2163 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -1,8 +1,10 @@ name: Node.js CI on: - # temp for testing puposes - push + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] jobs: build: