Skip to content

Commit

Permalink
Merge pull request #2 from BRAVO68WEB/feat/raw-url
Browse files Browse the repository at this point in the history
feat/raw url
  • Loading branch information
BRAVO68WEB authored May 6, 2024
2 parents e549ef1 + 03cab5b commit 53446a6
Show file tree
Hide file tree
Showing 50 changed files with 3,908 additions and 38 deletions.
28 changes: 28 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Setup Node Environment
description: Prepare and install everything for nodejs repo

runs:
using: composite
steps:
- uses: pnpm/action-setup@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: pnpm
node-version: 20
registry-url: https://registry.npmjs.org/

- name: Install dependencies
shell: bash
run: pnpm i

- name: Restore Turborepo Cache
uses: actions/cache@v3
with:
path: |
apps/**/.turbo
node_modules/.cache/turbo
key: turbo-${{ runner.os }}-${{ github.job }}-${{ github.sha }}
restore-keys: |
turbo-${{ runner.os }}-${{ github.job }}
64 changes: 33 additions & 31 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,38 @@
name: "Code Build Check"
name: CI Build

on:
push:
pull_request:

push:
branches: [main, dev]
pull_request:
branches: [main, dev]
workflow_dispatch:

jobs:
build-api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Installing Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Building with Cargo
uses: actions-rs/cargo@v1
with:
command: build
args: --release --manifest-path backend/Cargo.toml
use-cross: true

build-app:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Installing Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Installing dependencies
run: |
npm install --global yarn
yarn
working-directory: frontend
- name: Building the app
run: yarn build
working-directory: frontend
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Environment
uses: ./.github/actions/setup

- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version: '>=1.17.0'

- name: Installing Rust
uses: actions-rust-lang/setup-rust-toolchain@v1

# - name: Building with Cargo
# uses: actions-rs/cargo@v1
# with:
# command: build
# args: --release --manifest-path Cargo.toml
# use-cross: true

- name: Build packages
shell: bash
run: pnpm build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
**/dist/
**/.parcel-cache/
**/config.json
.turbo
Loading

0 comments on commit 53446a6

Please sign in to comment.