Skip to content

Merge pull request #95 from JDIZM/renovate/drizzle-orm-0.x #100

Merge pull request #95 from JDIZM/renovate/drizzle-orm-0.x

Merge pull request #95 from JDIZM/renovate/drizzle-orm-0.x #100

Workflow file for this run

name: test-and-build
on:
push:
branches:
- main
jobs:
test-and-build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm run lint
- run: npm run format:check
- run: npm run tsc:check
- run: npm run build
- run: npm run test
# TODO uncomment the deployment step when you have configured the secrets.
# deploy-dev:
# needs: test-and-build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: volta-cli/action@v3
# with:
# node-version: 20
# - name: Install doctl
# uses: digitalocean/action-doctl@v2
# with:
# token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
# - name: Build container image
# run: docker build -t ${{ secrets.REGISTRY_NAME }}/${{secrets.IMAGE_NAME}}-dev:$(echo $GITHUB_SHA | head -c7) .
# - name: Log in to DigitalOcean Container Registry with short-lived credentials
# run: doctl registry login --expiry-seconds 1200
# - name: tag image with latest tag
# run: docker tag ${{ secrets.REGISTRY_NAME }}/${{secrets.IMAGE_NAME}}-dev:$(echo $GITHUB_SHA | head -c7) ${{ secrets.REGISTRY_NAME }}/${{secrets.IMAGE_NAME}}-dev:latest
# - name: Push image to DigitalOcean Container Registry
# run: docker push ${{ secrets.REGISTRY_NAME }}/${{secrets.IMAGE_NAME}}-dev:latest