fix import dup dialog #3181
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-Test | |
| on: | |
| push: | |
| branches: | |
| - '**' # Trigger on all branches | |
| permissions: | |
| contents: read # As assets are not uploaded | |
| env: | |
| NODE_OPTIONS: --max-old-space-size=7168 | |
| jobs: | |
| test: | |
| name: Unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6 | |
| - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'yarn' | |
| - name: Install missing dependencies on Linux | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - name: Run unit tests | |
| run: yarn test | |
| trunk-check: | |
| name: Trunk Check | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6 | |
| - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'yarn' | |
| - name: Install missing dependencies on Linux | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - name: Install Trunk CLI | |
| run: | | |
| # Download the installer to a file first rather than piping curl | |
| # straight into a shell (semgrep gha-curl-pipe-shell). | |
| curl https://get.trunk.io -fsSL -o trunk-install.sh | |
| bash trunk-install.sh | |
| echo "$HOME/.trunk/bin" >> $GITHUB_PATH | |
| - name: Run Trunk via yarn check:trunk | |
| run: yarn check:trunk | |
| build: | |
| name: Production build | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6 | |
| - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'yarn' | |
| - name: Install missing dependencies on Linux | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - name: Run build | |
| run: yarn build |