chore(dashmate): add images migrations for v25 #6901
Workflow file for this run
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: All Packages | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- master | |
- v[0-9]+\.[0-9]+-dev | |
push: | |
branches: | |
- master | |
- v[0-9]+\.[0-9]+-dev | |
schedule: | |
- cron: '30 4 * * *' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
deps-versions: | |
name: JS dependency versions check | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v3 | |
- name: Setup Node.JS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Enable corepack | |
run: corepack enable | |
- name: Validate workspaces | |
run: yarn constraints | |
crates-security: | |
name: Crates security audit | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v3 | |
- name: Audit crates | |
uses: actions-rs/audit-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
npm-security: | |
name: NPM security audit | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v3 | |
- name: Enable corepack | |
run: corepack enable | |
- name: Audit NPM | |
run: yarn npm audit --environment production --all --recursive | |
test-suite: | |
name: Run Platform Test Suite | |
runs-on: [ "self-hosted", "linux", "x64", "ubuntu-platform" ] | |
timeout-minutes: 30 | |
env: | |
SCCACHE_GHA_ENABLED: "true" | |
RUSTC_WRAPPER: "sccache" | |
CARGO_INCREMENTAL: "false" | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Restore timestamps | |
uses: chetan/git-restore-mtime-action@v2 | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Setup Node.JS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
target: wasm32-unknown-unknown | |
- name: Setup Cargo cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
# Don't cache ./target, as it takes tons of space, use sccache instead. | |
cache-targets: false | |
# We set a shared key, as our cache is reusable between jobs | |
shared-key: rust-cargo | |
- name: Setup Rust compilation cache | |
uses: mozilla-actions/sccache-action@v0.0.3 | |
with: | |
version: "v0.4.1" | |
- name: Enable corepack | |
run: corepack enable | |
- name: Disable NPM audit | |
run: npm config set audit false | |
- name: Enable Yarn unplugged modules cache | |
uses: actions/cache@v3 | |
with: | |
path: '.yarn/unplugged' | |
key: ${{ runner.os }}-yarn-unplugged-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn-unplugged- | |
- name: Install dependencies | |
run: yarn install | |
- name: Build SDK | |
run: yarn build --filter "+dash" | |
- name: Set up Docker BuildX | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Enable docker cache mount | |
uses: actions/cache@v3 | |
with: | |
path: /tmp/buildkit-cache/buildkit-state.tar | |
key: ${{ runner.os }}-buildkit-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-buildkit | |
- name: Load docker cache mount | |
uses: dashevo/gh-action-cache-buildkit-state@master | |
with: | |
builder: buildx_buildkit_${{ steps.buildx.outputs.name }}0 | |
cache-path: /tmp/buildkit-cache | |
cache-max-size: 3g | |
- name: Setup local network | |
run: yarn configure | |
- name: Start local network | |
run: yarn start | |
- name: Run test suite | |
run: yarn test:suite | |
- name: Show Docker logs | |
if: ${{ failure() }} | |
uses: jwalton/gh-docker-logs@v2 | |
test-suite-browsers: | |
name: Run Platform Test Suite in Browsers | |
runs-on: [ "self-hosted", "linux", "x64", "ubuntu-platform" ] | |
timeout-minutes: 30 | |
env: | |
SCCACHE_GHA_ENABLED: "true" | |
RUSTC_WRAPPER: "sccache" | |
CARGO_INCREMENTAL: "false" | |
steps: | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Check out repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Restore timestamps | |
uses: chetan/git-restore-mtime-action@v2 | |
- name: Setup Node.JS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
target: wasm32-unknown-unknown | |
- name: Setup Cargo cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
# Don't cache ./target, as it takes tons of space, use sccache instead. | |
cache-targets: false | |
# We set a shared key, as our cache is reusable between jobs | |
shared-key: rust-cargo | |
- name: Setup Rust compilation cache | |
uses: mozilla-actions/sccache-action@v0.0.3 | |
with: | |
version: "v0.4.1" | |
- name: Enable corepack | |
run: corepack enable | |
- name: Disable NPM audit | |
run: npm config set audit false | |
- name: Enable Yarn unplugged modules cache | |
uses: actions/cache@v3 | |
with: | |
path: '.yarn/unplugged' | |
key: ${{ runner.os }}-yarn-unplugged-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn-unplugged- | |
- name: Install dependencies | |
run: yarn install | |
- name: Build SDK | |
run: yarn build --filter "+dash" | |
- name: Set up Docker BuildX | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Enable docker cache mount | |
uses: actions/cache@v3 | |
with: | |
path: /tmp/buildkit-cache/buildkit-state.tar | |
key: ${{ runner.os }}-buildkit-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-buildkit | |
- name: Load docker cache mount | |
uses: dashevo/gh-action-cache-buildkit-state@master | |
with: | |
builder: buildx_buildkit_${{ steps.buildx.outputs.name }}0 | |
cache-path: /tmp/buildkit-cache | |
cache-max-size: 3g | |
- name: Setup local network | |
run: yarn configure | |
- name: Start local network | |
run: yarn start | |
- name: Run test suite in browsers | |
run: yarn test:suite:browsers | |
- name: Show Docker logs | |
if: ${{ failure() }} | |
uses: jwalton/gh-docker-logs@v2 | |
codeql: | |
name: Code security audit | |
runs-on: ubuntu-22.04 | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v3 | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Setup Node.JS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: javascript | |
config-file: ./.github/codeql/codeql-config.yml | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
target: wasm32-unknown-unknown | |
- name: Setup Cargo cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
# Don't cache ./target, as it takes tons of space, use sccache instead. | |
cache-targets: false | |
# We set a shared key, as our cache is reusable between jobs | |
shared-key: rust-cargo | |
- name: Setup Rust compilation cache | |
uses: mozilla-actions/sccache-action@v0.0.3 | |
with: | |
version: "v0.4.1" | |
- name: Enable corepack | |
run: corepack enable | |
- name: Disable NPM audit | |
run: npm config set audit false | |
- name: Enable Yarn unplugged modules cache | |
uses: actions/cache@v3 | |
with: | |
path: '.yarn/unplugged' | |
key: ${{ runner.os }}-yarn-unplugged-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn-unplugged- | |
- name: Install dependencies | |
run: yarn install | |
- name: Build package and dependencies | |
run: yarn build --filter "+dash" | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 |