Skip to content

Bump the version

Bump the version #74

name: Continuous Integration
on:
push:
jobs:
type-check:
name: Type check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
keep-derivations = true
keep-outputs = true
- run: |
mv dist/index.js dist/index.old.$GITHUB_RUN_ID.$GITHUB_RUN_NUMBER.js
nix develop --command npm install
nix develop --command npm run build
diff dist/index.old.$GITHUB_RUN_ID.$GITHUB_RUN_NUMBER.js dist/index.js
test_default_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
- run: captain --version | grep '^v1\.'
test_specific_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
with:
version: v0.8.0
- run: captain --version | grep '^v0\.8\.0$'
test_specific_version_without_v_prefix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
with:
version: 1.0.57
- run: captain --version | grep '^v1\.0\.57$'
test_unstable_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
with:
version: unstable
- run: captain --version | grep '^unstable-'
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
keep-derivations = true
keep-outputs = true
- run: nix develop --command npm install
- run: nix develop --command npx prettier --check "src/**/*.ts"
- run: nix fmt -- --check flake.nix