Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,17 @@ jobs:
path: |
~/.asdf
.tool-versions
key: ${{ runner.os }}-asdf-${{ hashFiles('.tool-versions') }}
~/.yarn/cache
key: ${{ runner.os }}-${{ hashFiles('.tool-versions') }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-asdf-
${{ runner.os }}-
${{ runner.os }}-${{ hashFiles('.tool-versions') }}-
${{ runner.os }}-${{ hashFiles('.tool-versions') }}-${{ hashFiles('yarn.lock') }}

- uses: asdf-vm/actions/install@v3

- run: make install

- run: make lint

- run: make test
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,15 @@ jobs:
path: |
~/.asdf
.tool-versions
key: ${{ runner.os }}-asdf-${{ hashFiles('.tool-versions') }}
~/.yarn/cache
key: ${{ runner.os }}-${{ hashFiles('.tool-versions') }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-asdf-
${{ runner.os }}-
${{ runner.os }}-${{ hashFiles('.tool-versions') }}-
${{ runner.os }}-${{ hashFiles('.tool-versions') }}-${{ hashFiles('yarn.lock') }}

- uses: asdf-vm/actions/install@v3

- run: make install

- run: make publish
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,17 @@ jobs:
path: |
~/.asdf
.tool-versions
key: ${{ runner.os }}-asdf-${{ hashFiles('.tool-versions') }}
~/.yarn/cache
key: ${{ runner.os }}-${{ hashFiles('.tool-versions') }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-asdf-
${{ runner.os }}-
${{ runner.os }}-${{ hashFiles('.tool-versions') }}-
${{ runner.os }}-${{ hashFiles('.tool-versions') }}-${{ hashFiles('yarn.lock') }}

- uses: asdf-vm/actions/install@v3

- run: make install

- run: make publish

- run: make release
14 changes: 10 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,20 @@ ifneq ($(shell which asdf),)
corepack prepare yarn@4.3.1 --activate
asdf reshim nodejs
endif
ifeq ($(CI),true)
yarn install --immutable
else
yarn install
endif

lint: install
lint:
yarn lint:all
yarn tsc

test: install
test:
yarn test

dev: install
dev:
@echo "Starting the server at http://localhost:3000"
yarn dev

Expand Down Expand Up @@ -125,4 +129,6 @@ help:
@echo " publish: Build and publish the Docker image"
@echo " version: Show the current version"
@echo " release: Tag, push, and release a new version"
@echo " undo-release: Delete a release"
@echo " undo-release: Delete a release"
@echo " gh-release: Trigger GitHub Actions release workflow"
@echo " login-github: Log in to GitHub Container Registry"