APPZ-2153 Upgrade perses (#1) #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - main-logzio | |
| pull_request: | |
| merge_group: | |
| release: | |
| types: | |
| - published | |
| jobs: | |
| build: | |
| name: 'build' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v6 | |
| - uses: perses/github-actions@v0.11.0 | |
| - uses: ./.github/perses-ci/actions/setup_environment | |
| with: | |
| enable_npm: true | |
| enable_go: true | |
| nvmrc_path: './.nvmrc' | |
| - name: install dependencies | |
| run: npm ci | |
| - name: build libraries | |
| run: 'npm run build' | |
| - name: store libraries archives | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: archives | |
| path: | | |
| **/dist | |
| !node_modules | |
| lint-npm: | |
| name: 'lint-npm' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v6 | |
| - uses: perses/github-actions@v0.11.0 | |
| - uses: ./.github/perses-ci/actions/setup_environment | |
| with: | |
| enable_npm: true | |
| - run: npm ci | |
| - run: npm run lint | |
| test-npm: | |
| name: 'test-npm' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v6 | |
| - uses: perses/github-actions@v0.11.0 | |
| - uses: ./.github/perses-ci/actions/setup_environment | |
| with: | |
| enable_npm: true | |
| - run: npm ci | |
| - run: npm run test | |
| type-check: | |
| name: 'type-check' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v6 | |
| - uses: perses/github-actions@v0.11.0 | |
| - uses: ./.github/perses-ci/actions/setup_environment | |
| with: | |
| enable_npm: true | |
| - run: npm ci | |
| - run: npm run type-check | |
| # LOGZ.IO CHANGE:: No need for publishing | |
| # release: | |
| # name: 'release' | |
| # needs: 'build' | |
| # runs-on: ubuntu-latest | |
| # permissions: | |
| # contents: write | |
| # if: ${{ github.event.release.tag_name }} | |
| # env: | |
| # GITHUB_TOKEN: ${{ github.TOKEN }} | |
| # steps: | |
| # - name: checkout | |
| # uses: actions/checkout@v6 | |
| # - uses: perses/github-actions@v0.11.0 | |
| # - uses: ./.github/perses-ci/actions/setup_environment | |
| # with: | |
| # enable_npm: true | |
| # enable_go: true | |
| # nvmrc_path: './.nvmrc' | |
| # - name: Download archive | |
| # uses: actions/download-artifact@v7 | |
| # with: | |
| # name: archives | |
| # - name: Publish npm package | |
| # run: go run ./scripts/npm-publish/npm-publish.go -tag=${{ github.event.release.tag_name }} | |
| # env: | |
| # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |