mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-12 15:05:02 -05:00
* Bump next from 10.2.0 to 10.2.2 (#574) Bumps [next](https://github.com/vercel/next.js) from 10.2.0 to 10.2.2. - [Release notes](https://github.com/vercel/next.js/releases) - [Changelog](https://github.com/vercel/next.js/blob/canary/release.js) - [Commits](https://github.com/vercel/next.js/compare/v10.2.0...v10.2.2) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @chakra-ui/react from 1.6.1 to 1.6.2 (#580) Bumps [@chakra-ui/react](https://github.com/chakra-ui/chakra-ui) from 1.6.1 to 1.6.2. - [Release notes](https://github.com/chakra-ui/chakra-ui/releases) - [Changelog](https://github.com/chakra-ui/chakra-ui/blob/main/CHANGELOG.md) - [Commits](https://github.com/chakra-ui/chakra-ui/compare/@chakra-ui/react@1.6.1...@chakra-ui/react@1.6.2) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @types/node from 15.3.0 to 15.3.1 (#577) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 15.3.0 to 15.3.1. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update migrateSourceCredAccounts scripts to use Eth address as source of truth * Add githubApiToken to backend config * Bump ethers from 5.1.4 to 5.2.0 (#589) Bumps [ethers](https://github.com/ethers-io/ethers.js/tree/HEAD/packages/ethers) from 5.1.4 to 5.2.0. - [Release notes](https://github.com/ethers-io/ethers.js/releases) - [Changelog](https://github.com/ethers-io/ethers.js/blob/master/CHANGELOG.md) - [Commits](https://github.com/ethers-io/ethers.js/commits/v5.2.0/packages/ethers) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @typeit/discord from 4.0.9 to 4.0.10 (#585) Bumps [@typeit/discord](https://github.com/OwenCalvin/discord.ts) from 4.0.9 to 4.0.10. - [Release notes](https://github.com/OwenCalvin/discord.ts/releases) - [Changelog](https://github.com/OwenCalvin/discord.ts/blob/master/CHANGELOG.md) - [Commits](https://github.com/OwenCalvin/discord.ts/commits) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump js-base64 from 3.6.0 to 3.6.1 (#590) Bumps [js-base64](https://github.com/dankogai/js-base64) from 3.6.0 to 3.6.1. - [Release notes](https://github.com/dankogai/js-base64/releases) - [Commits](https://github.com/dankogai/js-base64/compare/3.6.0...3.6.1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @types/node from 15.3.1 to 15.6.1 (#594) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 15.3.1 to 15.6.1. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump next-transpile-modules from 7.0.0 to 7.2.0 (#584) Bumps [next-transpile-modules](https://github.com/martpie/next-transpile-modules) from 7.0.0 to 7.2.0. - [Release notes](https://github.com/martpie/next-transpile-modules/releases) - [Commits](https://github.com/martpie/next-transpile-modules/compare/7.0.0...7.2.0) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @types/react from 17.0.5 to 17.0.6 (#576) Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 17.0.5 to 17.0.6. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Use staging backend host for staging Hasura instance * github actions for develop branch * Add github secret to staging-backend env * Fix token config in render.yaml Matches whats configured in Render dashboard * Bump next from 10.2.2 to 10.2.3 (#612) Bumps [next](https://github.com/vercel/next.js) from 10.2.2 to 10.2.3. - [Release notes](https://github.com/vercel/next.js/releases) - [Changelog](https://github.com/vercel/next.js/blob/canary/release.js) - [Commits](https://github.com/vercel/next.js/compare/v10.2.2...v10.2.3) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump typescript from 4.2.4 to 4.3.2 (#611) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.2.4 to 4.3.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.2.4...v4.3.2) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump ethers from 5.2.0 to 5.3.0 (#616) Bumps [ethers](https://github.com/ethers-io/ethers.js/tree/HEAD/packages/ethers) from 5.2.0 to 5.3.0. - [Release notes](https://github.com/ethers-io/ethers.js/releases) - [Changelog](https://github.com/ethers-io/ethers.js/blob/master/CHANGELOG.md) - [Commits](https://github.com/ethers-io/ethers.js/commits/v5.3.0/packages/ethers) --- updated-dependencies: - dependency-name: ethers dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @chakra-ui/react from 1.6.2 to 1.6.3 (#621) Bumps [@chakra-ui/react](https://github.com/chakra-ui/chakra-ui) from 1.6.2 to 1.6.3. - [Release notes](https://github.com/chakra-ui/chakra-ui/releases) - [Changelog](https://github.com/chakra-ui/chakra-ui/blob/main/CHANGELOG.md) - [Commits](https://github.com/chakra-ui/chakra-ui/compare/@chakra-ui/react@1.6.2...@chakra-ui/react@1.6.3) --- updated-dependencies: - dependency-name: "@chakra-ui/react" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump sourcecred from 0.8.7 to 0.9.0 (#623) Bumps [sourcecred](https://github.com/sourcecred/sourcecred) from 0.8.7 to 0.9.0. - [Release notes](https://github.com/sourcecred/sourcecred/releases) - [Commits](https://github.com/sourcecred/sourcecred/compare/sourcecred-v0.8.7...sourcecred-v0.9.0) --- updated-dependencies: - dependency-name: sourcecred dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dan13ram <dan13ram@gmail.com>
105 lines
2.3 KiB
YAML
105 lines
2.3 KiB
YAML
name: TheGame CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- develop
|
|
push:
|
|
branches:
|
|
- master
|
|
- develop
|
|
|
|
jobs:
|
|
test:
|
|
name: Run Tests
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Cancel Previous Runs
|
|
uses: styfle/cancel-workflow-action@0.4.0
|
|
with:
|
|
access_token: ${{ github.token }}
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 14.x
|
|
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: '**/node_modules'
|
|
key: nodeModules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
- name: Install packages
|
|
run: yarn --frozen-lockfile
|
|
env:
|
|
CI: true
|
|
|
|
- name: Typechecking
|
|
run: yarn typecheck
|
|
env:
|
|
CI: true
|
|
|
|
- name: Linting
|
|
run: yarn lint
|
|
env:
|
|
CI: true
|
|
|
|
- name: Testing
|
|
run: yarn test --ci --coverage
|
|
env:
|
|
CI: true
|
|
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Cancel Previous Runs
|
|
uses: styfle/cancel-workflow-action@0.4.0
|
|
with:
|
|
access_token: ${{ github.token }}
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 14.x
|
|
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: '**/node_modules'
|
|
key: nodeModules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
- name: Install packages
|
|
run: yarn --frozen-lockfile
|
|
env:
|
|
CI: true
|
|
|
|
- name: Build Backend
|
|
run: yarn backend:build
|
|
env:
|
|
CI: true
|
|
|
|
# Spin up the backend / hasura / DB for the web build to point to
|
|
- name: Run docker-compose
|
|
run: docker-compose up --build -d
|
|
env:
|
|
DATABASE_USER: metagame
|
|
DATABASE_PASSWORD: postgres
|
|
DATABASE_DB: metagame-db
|
|
HASURA_GRAPHQL_ADMIN_SECRET: so-secretish
|
|
HASURA_PORT: 8080
|
|
|
|
- name: Debug docker containers
|
|
run: docker ps -a
|
|
|
|
- name: Wait for Hasura
|
|
run: yarn wait-on --timeout 60000 http-get://localhost:8080/healthz || (docker-compose ps hasura && docker-compose logs --tail 20 hasura)
|
|
|
|
- name: Build Web
|
|
run: yarn web:build
|
|
env:
|
|
CI: true
|
|
NEXT_PUBLIC_GRAPHQL_URL: http://localhost:8080/v1/graphql
|