uploader: stop reuploading files after 30 days #1544
This file contains 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: Frontend CI | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
frontend-build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.head_ref }} | |
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config | |
persist-credentials: false | |
- name: Check whether frontend code was changed | |
id: frontend-change | |
working-directory: ./configurator/frontend | |
run: echo ::set-output name=status::1 | |
# run: git diff @~..@ --quiet ./ || echo ::set-output name=status::1 | |
- name: Frontend changed status | |
env: | |
FRONTEND_CHANGED: ${{ steps.frontend-change.outputs.status }} | |
run: echo TMP WORKAROUND - now it always "changed". Frontend changed - $FRONTEND_CHANGED | |
- uses: actions/setup-node@v3 | |
if: ${{ success() && steps.frontend-change.outputs.status == 1 }} | |
with: | |
node-version: "16" | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
version: 8.2.0 | |
run_install: false | |
- run: pnpm install | |
if: ${{ success() && steps.frontend-change.outputs.status == 1 }} | |
name: "[Frontend CI] installing packages (pnpm install)" | |
working-directory: ./configurator/frontend | |
- run: pnpm verify | |
if: ${{ success() && steps.frontend-change.outputs.status == 1 }} | |
name: "[Frontend CI] verify (code style & linter)" | |
working-directory: ./configurator/frontend | |
- run: pnpm build | |
if: ${{ success() && steps.frontend-change.outputs.status == 1 }} | |
name: "[Frontend CI] building" | |
working-directory: ./configurator/frontend | |
# - name: "[Frontend CI] configure github " | |
# run: | | |
# git config user.name "GitHub Actions Bot" | |
# git config user.email "<>" | |
# | |
# - run: pnpm canary:publish | |
# env: | |
# NPM_TOKEN: ${{ secrets.LERNA_CI_NPM }} | |
# # So far run publish only on refs/heads/feature/945_pnpm_turbo | |
# if: ${{ success() && steps.frontend-change.outputs.status == 1 && github.ref == 'refs/heads/feature/945_pnpm_turbo' }} | |
# name: "[Frontend CI] publishing canary release" | |
# working-directory: ./configurator/frontend | |
- name: Notify to Slack on Errors | |
uses: rtCamp/action-slack-notify@v2.2.0 | |
if: ${{ failure() && steps.frontend-change.outputs.status == 1 && (github.ref_name == 'beta' || github.ref_name == 'master' ) }} | |
env: | |
SLACK_COLOR: ${{ job.status }} # or a specific color like 'good' or '#ff00ff' | |
SLACK_ICON_EMOJI: 👿 | |
SLACK_WEBHOOK: ${{ secrets.SLACK_CI_FRONTEND_WEBHOOK }} | |
SLACK_FOOTER: "" |