Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: upgrade actions versions #498

Merged
merged 1 commit into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/chainalert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
108 changes: 51 additions & 57 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -31,69 +31,63 @@ 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/[email protected]
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/[email protected]
with:
# Artifact name
name: ${{ matrix.os }}-screenshots
# Directory containing files to upload
path: screenshots

build:

runs-on: ${{ matrix.os }}

# Platforms to build on/for
strategy:
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/[email protected]
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/[email protected]
with:
# Artifact name
name: ${{ matrix.os }}-artifact
# Directory containing files to upload
path: dist_electron
8 changes: 4 additions & 4 deletions .github/workflows/nuxt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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 != ''
Expand Down
Loading