diff --git a/.github/workflows/shared_steps.yml b/.github/workflows/shared_steps.yml index 108463c..a816d81 100644 --- a/.github/workflows/shared_steps.yml +++ b/.github/workflows/shared_steps.yml @@ -12,75 +12,79 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [16, 18] - steps: - - name: checkout - uses: actions/checkout@v2 - with: - ref: ${{ inputs.branch }} + phpVersionMajor: [ 7, 8 ] + phpVersionMinor: [ 4, 1 ] + services: + nextcloud: + image: ghcr.io/juliushaertl/nextcloud-dev-php${{ format('{0}{1}', matrix.phpVersionMajor,matrix.phpVersionMinor) }}:${{ matrix.phpVersionMajor == 7 && 'latest@sha256:2ab4bf7241fb6997d4819b5a32345b8cdb66ea27511c7b5698b77a592e09153f' || 'latest@sha256:7e9bb4cf6d232001b93add1b2a14628b000af1480ad11d6d7b3f93c14a9249b8' }} - - name: Get branch name - run: | - echo "Branch name from trigger: ${{ inputs.branch }}" + # steps: + # - name: checkout + # uses: actions/checkout@v2 + # with: + # ref: ${{ inputs.branch }} - - name: Install node required - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} + # - name: Get branch name + # run: | + # echo "Branch name from trigger: ${{ inputs.branch }}" - - name: Install dependencies - run: npm ci + # - name: Install node required + # uses: actions/setup-node@v3 + # with: + # node-version: ${{ matrix.node-version }} - - name: run hello.js - run: | - node ./hello.js + # - name: Install dependencies + # run: npm ci - api-test: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [16, 18] - steps: - - name: checkout - uses: actions/checkout@v2 - with: - ref: ${{ inputs.branch }} + # - name: run hello.js + # run: | + # node ./hello.js - - name: Get branch name - run: | - echo "Branch name from trigger: ${{ inputs.branch }}" + # api-test: + # runs-on: ubuntu-latest + # strategy: + # matrix: + # node-version: [16, 18] + # steps: + # - name: checkout + # uses: actions/checkout@v2 + # with: + # ref: ${{ inputs.branch }} - - name: Install node required - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} + # - name: Get branch name + # run: | + # echo "Branch name from trigger: ${{ inputs.branch }}" - - name: Install dependencies - run: npm ci + # - name: Install node required + # uses: actions/setup-node@v3 + # with: + # node-version: ${{ matrix.node-version }} - - name: run hello.js - run: | - node ./hello.js + # - name: Install dependencies + # run: npm ci - notify: - needs: - - unit-test - - api-test - if: ${{ always() && github.event_name == 'schedule' }} - runs-on: ubuntu-latest - steps: - - name: checkout - uses: actions/checkout@v2 - with: - ref: main + # - name: run hello.js + # run: | + # node ./hello.js + + # notify: + # needs: + # - unit-test + # if: ${{ always() && github.event_name == 'schedule' }} + # runs-on: ubuntu-latest + # steps: + # - name: checkout + # uses: actions/checkout@v2 + # with: + # ref: main - - name: Step 2 - env: - E_ROOM_ID: ${{ secrets.E_ROOM_ID }} - U_TOKEN: ${{ secrets.U_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - REPO_OWNER: SagarGi - REPO_NAME: ceck-expect-failure - RUN_ID: ${{ github.run_id }} - BRANCH_NAME: ${{ inputs.branch }} - run: ./.github/scripts/notify.sh + # - name: Step 2 + # env: + # E_ROOM_ID: ${{ secrets.E_ROOM_ID }} + # U_TOKEN: ${{ secrets.U_TOKEN }} + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # REPO_OWNER: SagarGi + # REPO_NAME: ceck-expect-failure + # RUN_ID: ${{ github.run_id }} + # BRANCH_NAME: ${{ inputs.branch }} + # run: ./.github/scripts/notify.sh