chore(deps-dev): bump bun-types from 1.0.8 to 1.1.0 #354
Workflow file for this run
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: Build and deploy | |
on: push | |
jobs: | |
codeql-analysis: | |
if: github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: github/codeql-action/init@v2 | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@v2 | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 | |
test: | |
name: 'Run bun tests' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: navikt/teamsykmelding-github-actions-workflows/actions/yarn-cached@main | |
with: | |
NPM_AUTH_TOKEN: ${{ secrets.READER_TOKEN }} | |
- uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: 1.0.25 | |
- run: yarn test | |
build-and-publish: | |
if: github.ref == 'refs/heads/main' | |
name: 'Prod: Bygg, test og push Docker image' | |
runs-on: ubuntu-latest | |
permissions: | |
packages: 'write' | |
contents: 'read' | |
id-token: 'write' | |
outputs: | |
image: ${{ steps.docker-build-push.outputs.image }} | |
steps: | |
- uses: navikt/teamsykmelding-github-actions-workflows/actions/yarn-cached@main | |
with: | |
NPM_AUTH_TOKEN: ${{ secrets.READER_TOKEN }} | |
- run: yarn lint | |
- run: yarn build | |
env: | |
NEXT_PUBLIC_ENVIRONMENT: production | |
- name: Push docker image to GAR | |
uses: nais/docker-build-push@v0 | |
id: docker-build-push | |
with: | |
team: teamsykmelding | |
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }} | |
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }} | |
image_suffix: prod | |
build-and-publish-dev: | |
name: 'Dev: Bygg, test og push Docker image' | |
runs-on: ubuntu-latest | |
permissions: | |
packages: 'write' | |
contents: 'read' | |
id-token: 'write' | |
outputs: | |
image: ${{ steps.docker-build-push.outputs.image }} | |
steps: | |
- uses: navikt/teamsykmelding-github-actions-workflows/actions/yarn-cached@main | |
with: | |
NPM_AUTH_TOKEN: ${{ secrets.READER_TOKEN }} | |
- run: yarn lint | |
- run: yarn build | |
env: | |
NEXT_PUBLIC_ENVIRONMENT: dev | |
- name: Push docker image to GAR | |
uses: nais/docker-build-push@v0 | |
id: docker-build-push | |
with: | |
team: teamsykmelding | |
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }} | |
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }} | |
image_suffix: dev | |
deploy-bot-to-gcp: | |
if: github.ref == 'refs/heads/main' | |
name: Deploy to prod | |
needs: [build-and-publish, codeql-analysis, test] | |
runs-on: ubuntu-latest | |
environment: | |
name: production | |
url: https://helsesjekk-bot.nav.no | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: nais/deploy/actions/deploy@v1 | |
env: | |
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }} | |
CLUSTER: prod-gcp | |
RESOURCE: nais.yml | |
VAR: image=${{ needs.build-and-publish.outputs.image }} | |
deploy-bot-to-gcp-dev: | |
if: github.ref != 'refs/heads/main' | |
name: Deploy to dev | |
needs: [build-and-publish-dev, test] | |
runs-on: ubuntu-latest | |
environment: | |
name: development | |
url: https://helsesjekk-bot.intern.dev.nav.no | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: nais/deploy/actions/deploy@v1 | |
env: | |
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }} | |
CLUSTER: dev-gcp | |
RESOURCE: nais-dev.yml | |
VAR: image=${{ needs.build-and-publish-dev.outputs.image }} |