Skip to content

chore(deps): update go deps, database, dockerfiles and a few refinements #104

chore(deps): update go deps, database, dockerfiles and a few refinements

chore(deps): update go deps, database, dockerfiles and a few refinements #104

Workflow file for this run

name: GraphQL
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
defaults:
run:
working-directory: cmd/graphql
jobs:
type-check:
name: Type check
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: current
- name: Cache
uses: actions/cache@v2
with:
path: cmd/graphql/.yarn/cache
key: ${{ runner.os }}-graphql-yarn-cache-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-graphql-yarn-cache-
- name: Install
run: yarn install --immutable
- name: Type check
run: yarn type-check
lint:
name: Lint
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: current
- name: Cache
uses: actions/cache@v2
with:
path: cmd/graphql/.yarn/cache
key: ${{ runner.os }}-graphql-yarn-cache-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-graphql-yarn-cache-
- name: Install
run: yarn install --immutable
- name: Lint
run: yarn lint
release:
name: Release
if: github.ref == 'refs/heads/main'
needs: [type-check, lint]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/bake-action@v2
with:
set: |
*.cache-from=type=gha
*.cache-to=type=gha,mode=max
targets: graphql
push: true