chore(deps): bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #108
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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: read | |
env: | |
CI: true | |
DISPLAY: ':99.0' | |
AUTOCOMPLETION_ENGINE_LOCATION: ./autocompletion-engine/crates/node | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache node_modules | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-${{ matrix.node-version }}-node_modules-${{ hashFiles('**/package-lock.json') }} | |
- name: Cache cargo | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Cache rust build | |
uses: actions/cache@v3 | |
with: | |
path: | | |
./autocompletion-engine/target/ | |
${{ env.AUTOCOMPLETION_ENGINE_LOCATION }}/*.node | |
${{ env.AUTOCOMPLETION_ENGINE_LOCATION }}/index.js | |
${{ env.AUTOCOMPLETION_ENGINE_LOCATION }}/index.d.ts | |
key: ${{ runner.os }}-autocompletion-engine-${{ hashFiles('./autocompletion-engine/**/*') }} | |
- name: Install dependencies | |
run: npm install | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
profile: minimal | |
override: true | |
- name: Check versions | |
run: | | |
echo "Node:" `node --version` | |
echo "NPM:" `npm --version` | |
echo "Rust:" `rustc --version` | |
echo "Cargo:" `cargo --version` | |
- name: Setup Xvfb for VSCode integration test | |
run: | | |
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | |
echo ">>> Started xvfb" | |
- name: Lint | |
run: npm run lint | |
- name: Test | |
run: npm run test | |
- name: Build | |
run: npm run build |