Skip to content

chore: Update Flox environment #13

chore: Update Flox environment

chore: Update Flox environment #13

Workflow file for this run

name: "CI"
on:
workflow_dispatch:
push:
branches:
- "main"
pull_request:
concurrency:
group: "ci-${{ github.ref_name }}-${{ github.event_name }}-${{ github.event.number || (github.event.pull_request.head.sha || github.sha) }}"
cancel-in-progress: true
env:
FLOX_DISABLE_METRICS: "true"
jobs:
build:
name: "Build"
runs-on: "ubuntu-latest"
timeout-minutes: 30
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
with:
fetch-depth: 0
- name: "Install Flox"
uses: "flox/install-flox-action@main"
- name: "Restore npm cache"
uses: "actions/cache@v4"
with:
path: |
~/.npm
key: "${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}"
restore-keys: |
${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}-
- name: "Install"
uses: "flox/activate-action@main"
with:
command: "npm ci"
- name: "Lint"
uses: "flox/activate-action@main"
with:
command: "npm run lint"
- name: "Build"
uses: "flox/activate-action@main"
with:
command: "npm run compile"
- name: "Package"
uses: "flox/activate-action@main"
with:
command: "npm run package -- --out flox-main.vsix"
- name: "Upload vscode extention as artifact"
uses: "actions/upload-artifact@v4"
with:
name: "flox-main.vsix"
path: "flox-main.vsix"
retention-days: 14