check for secrets during publishing #1131
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
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "latest" | |
- name: Cache Node Modules | |
id: cache-node-modules | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package.json', '**/package-lock.json') }} | |
- name: Install dependencies | |
if: steps.cache-node-modules.outputs.cache-hit != 'true' | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
- name: Download foundryup | |
if: runner.os != 'Windows' | |
run: curl -L https://foundry.paradigm.xyz | bash | |
- name: Install foundry | |
if: runner.os != 'Windows' | |
run: ${XDG_CONFIG_HOME:-$HOME}/.foundry/bin/foundryup | |
- name: Build project | |
run: npm run build | |
- name: Run server tests | |
run: npm run test:codecov | |
- name: Run protocol tests | |
run: npm run test:protocol | |
- name: Cache VS Code client | |
id: cache-vscode | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-vscode | |
with: | |
path: .vscode-test | |
key: ${{ runner.os }}-vscode-1.86.0 | |
- name: Run E2E tests | |
uses: coactions/setup-xvfb@v1.0.1 | |
with: | |
run: npm run test:e2e | |
- name: Package the extension | |
run: npm run package |