Skip to content

chore(release): give release-please write permissions #115

chore(release): give release-please write permissions

chore(release): give release-please write permissions #115

Workflow file for this run

name: Build and Test
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
DENO_DIR: ./.cache
DENO_VER: "1.37.2"
jobs:
caching:
name: "Cache Updates"
runs-on: ubuntu-latest
steps:
- name: "Check out code"
uses: actions/checkout@v3
- name: "Setup cache"
uses: actions/cache@v3
with:
path: ${{ env.DENO_DIR }}
key: deno-${{ hashFiles('deno.lock' )}}
- name: "Setup Deno"
uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VER }}
- name: "Update cache"
run: |
deno cache --reload \
deps/src/all.ts deps/test/all.ts
coding-checks:
name: "Coding Checks"
runs-on: ubuntu-latest
needs:
- caching
steps:
- name: "Check out code"
uses: actions/checkout@v3
- name: "Setup cache"
uses: actions/cache@v3
with:
path: ${{ env.DENO_DIR }}
key: deno-${{ hashFiles('deno.lock') }}
- name: "Setup Deno"
uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VER }}
- name: "Lint check"
run: deno lint
- name: "Format check"
run: deno fmt --check
unit-test:
name: "Testing"
runs-on: ubuntu-latest
needs:
- caching
steps:
- name: "Check out code"
uses: actions/checkout@v3
- name: "Setup cache"
uses: actions/cache@v3
with:
path: ${{ env.DENO_DIR }}
key: deno-${{ hashFiles('deno.lock') }}
- name: "Setup Deno"
uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VER }}
- name: "Run unit tests"
run: deno test --coverage=coverage/profile
- name: "Generate coverage reports"
run: |
deno coverage \
--include=src \
--exclude=deps \
--lcov --output=coverage/lcov \
coverage/profile
- name: "Report coverage"
uses: codecov/codecov-action@v3
with:
files: coverage/lcov
release-pr:

Check failure on line 81 in .github/workflows/build-test.yaml

View workflow run for this annotation

GitHub Actions / Build and Test

Invalid workflow file

The workflow is not valid. .github/workflows/build-test.yaml (Line: 81, Col: 3): Error calling workflow 'linuxwolf/expecto/.github/workflows/release-please.yaml@890fb735a4929355435bf8f89886eacb6b22bb9e'. The nested job 'release-pr' is requesting 'contents: write', but is only allowed 'contents: read'.
name: "Prep release PR"
needs:
- coding-checks
- unit-test
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/release-please.yaml