chore(deps): update go deps, database, dockerfiles and a few refinements #27
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: App | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened] | |
branches: | |
- main | |
defaults: | |
run: | |
working-directory: app | |
jobs: | |
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: app/.yarn/cache | |
key: ${{ runner.os }}-app-yarn-cache-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-app-yarn-cache- | |
- name: Install | |
run: yarn install --immutable | |
- name: Lint | |
run: yarn lint | |
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: app/.yarn/cache | |
key: ${{ runner.os }}-app-yarn-cache-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-app-yarn-cache- | |
- name: Install | |
run: yarn install --immutable | |
- name: Type check | |
run: yarn type-check | |
graphql-check: | |
name: GraphQL 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: app/.yarn/cache | |
key: ${{ runner.os }}-app-yarn-cache-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-app-yarn-cache- | |
- name: Install | |
run: yarn install --immutable | |
- name: GraphQL check | |
run: yarn relay --validate |