Merge pull request #97 from JDIZM/renovate/drizzle-orm-0.x #102
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |