Skip to content

add permissions

add permissions #4

Workflow file for this run

name: Tinybird CI

Check failure on line 1 in .github/workflows/tinybird-ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/tinybird-ci.yml

Invalid workflow file

(Line: 46, Col: 9): Unexpected value 'run', (Line: 42, Col: 9): Required property is missing: uses
on:
workflow_dispatch:
pull_request:
branches:
- main
- master
paths:
- 'tinybird/**'
types: [opened, reopened, labeled, unlabeled, synchronize]
concurrency: ${{ github.workflow }}-${{ github.event.pull_request.number }}
permissions:
contents: read
jobs:
ci:
name: Validate
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'tinybird'
services:
tinybird:
image: tinybirdco/tinybird-local:latest
ports:
- 7181:7181
steps:
- uses: actions/checkout@v3
- name: Install Tinybird CLI
run: curl https://tinybird.co | sh
- name: Build project
run: tb build
- name: Test project
run: tb test run
- name: Deployment check
with:
TINYBIRD_HOST: ${{ secrets.TINYBIRD_HOST }}
TINYBIRD_TOKEN: ${{ secrets.TINYBIRD_TOKEN }}
run: tb --cloud deploy --check