Skip to content

feat(unstable): expose typed session selector/capability fields for c… #75

feat(unstable): expose typed session selector/capability fields for c…

feat(unstable): expose typed session selector/capability fields for c… #75

Workflow file for this run

name: CI
on:
pull_request:
paths-ignore:
- "README.md"
push:
branches:
- main
paths-ignore:
- "README.md"
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
check:
name: check
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
permissions:
contents: read
actions: write
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
fetch-tags: true
persist-credentials: false
- name: Setup Nix
uses: nixbuild/nix-quick-install-action@2c9db80fb984ceb1bcaa77cdda3fdf8cfba92035 # v34
- name: Cache Nix store
uses: nix-community/cache-nix-action@7df957e333c1e5da7721f60227dbba6d06080569 # v7.0.2
with:
primary-key: nix-acp-go-sdk-${{ runner.os }}-${{ hashFiles('**/*.nix', 'flake.lock') }}
restore-prefixes-first-match: nix-acp-go-sdk-${{ runner.os }}-
gc-max-store-size-linux: 2G
purge: true
purge-prefixes: nix-acp-go-sdk-${{ runner.os }}-
purge-created: 0
purge-primary-key: never
- name: Check formatting (treefmt)
run: nix develop .# --command treefmt --fail-on-change
- name: Make tests
run: nix develop .# --command make test
- name: Nix flake checks
run: nix flake check