Skip to main content
Module

x/clippy/.github/workflows/ci.yaml

cross-platform Deno library for writing and reading clipboard.
Go to Latest
File
name: Lint and Teston: push: branches: - main paths-ignore: - 'README.md' - '.gitignore' pull_request: paths-ignore: - 'README.md' - '.gitignore'jobs: lint: name: lint strategy: matrix: toolchain: [stable] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Cache toolchain uses: Swatinem/rust-cache@v1 - name: Setup Rust toolchain uses: actions-rs/toolchain@v1 with: toolchain: ${{ matrix.toolchain }} override: true components: rustfmt, clippy - name: Check build run: | make check - name: Lint run: | make lint test: name: test strategy: matrix: os: # wait fix https://github.com/denoland/deno_bindgen/issues/91 # - windows-latest - macos-latest - ubuntu-latest toolchain: [stable] deno_version: [v1.x] runs-on: ${{ matrix.os }} steps: - name: Install XQuartz on macOS if: runner.os == 'macOS' run: brew install xquartz - name: Install xvfb if: runner.os == 'Linux' run: | sudo apt update sudo apt install xvfb xclip - uses: actions/checkout@v2 - name: Cache toolchain uses: Swatinem/rust-cache@v1 - name: Setup Rust toolchain uses: actions-rs/toolchain@v1 with: toolchain: ${{ matrix.toolchain }} override: true - uses: denoland/setup-deno@v1 with: deno-version: ${{ matrix.deno_version }} - name: Install deno_bindgen run: | # FIXME: Install from GitHub as the latest commit supports FFI destructive changes but has not been released. # deno install -Afq -n deno_bindgen https://deno.land/x/deno_bindgen/cli.ts deno install -Afq -n deno_bindgen https://raw.githubusercontent.com/denoland/deno_bindgen/main/cli.ts - name: Test in macOS and Windows if: runner.os != 'Linux' run: | make test - name: Test in Linux if: runner.os == 'Linux' run: | # NOTE: Currently FFI tests do not work properly on Linux # See #2 xvfb-run make deno-test