diff --git a/.github/workflows/chainalert.yml b/.github/workflows/chainalert.yml index 075ce686..9577186b 100644 --- a/.github/workflows/chainalert.yml +++ b/.github/workflows/chainalert.yml @@ -2,12 +2,12 @@ name: "ChainAlert" on: push: - branches: [ master ] + branches: [master] jobs: chainalert: name: ChainAlert runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: checkmarx/chainalert-github-action@master + - uses: actions/checkout@v4 + - uses: checkmarx/chainalert-github-action@master diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a397be01..c299ab42 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,9 +9,9 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Use Node.js 14.x - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: 14.x - run: yarn @@ -31,35 +31,31 @@ jobs: os: [ubuntu-latest, windows-latest] steps: - - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: Install xvfb - if: matrix.os == 'ubuntu-latest' - run: | - sudo apt update - sudo apt install -y xvfb graphicsmagick - npm install -g xvfb-maybe - Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & - - name: yarn install - run: yarn - - name: yarn unit - run: yarn unit - - name: yarn e2e - run: yarn e2e - - name: Upload screenshots - if: failure() - uses: actions/upload-artifact@v1.0.0 - with: - # Artifact name - name: ${{ matrix.os }}-screenshots - # Directory containing files to upload - path: screenshots + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - name: Install xvfb + if: matrix.os == 'ubuntu-latest' + run: | + sudo apt update + sudo apt install -y xvfb graphicsmagick + npm install -g xvfb-maybe + Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & + - run: yarn + - run: yarn unit + - run: yarn e2e + - name: Upload screenshots + if: failure() + uses: actions/upload-artifact@v1.0.0 + with: + # Artifact name + name: ${{ matrix.os }}-screenshots + # Directory containing files to upload + path: screenshots build: - runs-on: ${{ matrix.os }} # Platforms to build on/for @@ -67,33 +63,31 @@ jobs: max-parallel: 2 matrix: os: - - windows-latest - # - ubuntu-latest - - macos-latest + - windows-latest + # - ubuntu-latest + - macos-latest steps: - - uses: actions/checkout@v1 - - name: Install Node.js, NPM and Yarn - uses: actions/setup-node@v1 - with: - node-version: 14.x - - name: Build Electron app - shell: bash - env: - GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }} - GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }} - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NODE_OPTIONS: --max-old-space-size=4096 - SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY }} - SENTRY_DSN: ${{ secrets.SENTRY_DSN }} - run: | - yarn - yarn build --publish never - - name: Upload artifact - uses: actions/upload-artifact@v1.0.0 - with: - # Artifact name - name: ${{ matrix.os }}-artifact - # Directory containing files to upload - path: dist_electron - + - uses: actions/checkout@v4 + - name: Install Node.js, NPM and Yarn + uses: actions/setup-node@v3 + with: + node-version: 14.x + - run: yarn + - name: Build Electron app + shell: bash + env: + GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }} + GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_OPTIONS: --max-old-space-size=4096 + SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY }} + SENTRY_DSN: ${{ secrets.SENTRY_DSN }} + run: yarn build --publish never + - name: Upload artifact + uses: actions/upload-artifact@v1.0.0 + with: + # Artifact name + name: ${{ matrix.os }}-artifact + # Directory containing files to upload + path: dist_electron diff --git a/.github/workflows/nuxt.yml b/.github/workflows/nuxt.yml index ee99a4d0..eebaf86a 100644 --- a/.github/workflows/nuxt.yml +++ b/.github/workflows/nuxt.yml @@ -18,8 +18,8 @@ jobs: run: working-directory: nuxt steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 with: node-version: 16.x - run: yarn @@ -34,8 +34,8 @@ jobs: working-directory: nuxt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 with: node-version: 16.x - name: yarn diff --git a/.github/workflows/semantic-release.yml b/.github/workflows/semantic-release.yml index 72e428b2..d86dfb1c 100644 --- a/.github/workflows/semantic-release.yml +++ b/.github/workflows/semantic-release.yml @@ -22,7 +22,7 @@ jobs: new_release_published: ${{ steps.semantic.outputs.new_release_published }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: yarn - uses: cycjimmy/semantic-release-action@8f6ceb9d5aae5578b1dcda6af00008235204e7fa id: semantic @@ -45,9 +45,9 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Node.js, NPM and Yarn - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: 14.x - name: Install Snapcraft @@ -73,7 +73,7 @@ jobs: PUBLISH_PARAM: ${{ env.NEW_RELEASE_PUBLISHED == 'true' && 'always' || 'never' }} run: | yarn build --publish $PUBLISH_PARAM - + notify: needs: [release, publish] if: needs.release.outputs.new_release_published == 'true' || inputs.version != ''