From a6d3deba3fc7908c22e83abc88012518028b69e8 Mon Sep 17 00:00:00 2001 From: Zaher Aldefai Date: Tue, 29 Oct 2024 13:51:52 +0100 Subject: [PATCH] include push workflow --- .github/workflows/fsh-shell_push.yml | 55 ++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/fsh-shell_push.yml diff --git a/.github/workflows/fsh-shell_push.yml b/.github/workflows/fsh-shell_push.yml new file mode 100644 index 0000000..81a9cc9 --- /dev/null +++ b/.github/workflows/fsh-shell_push.yml @@ -0,0 +1,55 @@ +name: fsm-shell push +run-name: '[ON_PUSH fsm-shell] ${{ github.sha }}' + +on: + pull_request: + branches: [master] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '18' + - name: Install dependencies + run: npm i + - name: Unit tests + run: npm run test:ci:headless + + # test-build: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - uses: actions/setup-node@v4 + # with: + # node-version: '18' + # - name: Install dependencies + # run: npm i + # - name: Run build + # run: npm run build + + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '18' + - name: Install dependencies + run: npm i + - name: Run build + run: npm run build + - name: Publish + run: | + echo "Test-1" + ls + apk add unzip + apk add zip + zip -r shell-client.zip release/* ./package.json ./package-lock.json ./LICENSE + echo "Test-2" + ls + unzip ./shell-client.zip -d ./ + echo "Test-3" + ls