Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed Jan 1, 2024
1 parent 71a2011 commit 4417f9c
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
pull_request:
branches: ['main']

env:
TURBO_API: 'http://127.0.0.1:9080'
TURBO_TOKEN: ${{ secrets.TURBO_SERVER_TOKEN }}
TURBO_TEAM: ${{ github.repository_owner }}

jobs:
build:
name: 'Build'
Expand All @@ -14,12 +19,12 @@ jobs:
node-version: [16]
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 7.0.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
Expand All @@ -34,18 +39,18 @@ jobs:
server-token: ${{ secrets.TURBO_SERVER_TOKEN }}

- name: 🧹 Lint and Test
run: pnpm turbo lint check coverage --color --api="http://127.0.0.1:9080" --token="${{ secrets.TURBO_SERVER_TOKEN }}" --team="${{ github.repository_owner }}"
run: pnpm turbo lint check coverage --color

- name: ⏫ Upload coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: 👷‍♀️ Build
run: pnpm turbo build --color --concurrency=5 --api="http://127.0.0.1:9080" --token="${{ secrets.TURBO_SERVER_TOKEN }}" --team="${{ github.repository_owner }}"
run: pnpm turbo build --color --concurrency=5

- name: ⏫ Upload build artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: build
path: |
Expand Down

0 comments on commit 4417f9c

Please sign in to comment.