DEV: Minor workflow updates (#16583)

This commit is contained in:
Jarek Radosz 2022-04-28 15:51:48 +02:00 committed by GitHub
parent badde13894
commit de19003bad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 11 deletions

View File

@ -12,7 +12,7 @@ jobs:
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@v3
with: with:
fetch-depth: 1 fetch-depth: 1

View File

@ -4,18 +4,21 @@ on:
pull_request: pull_request:
push: push:
branches: branches:
- master
- main - main
concurrency:
group: licenses-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}
cancel-in-progress: true
jobs: jobs:
build: build:
name: run name: run
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: discourse/discourse_test:release container: discourse/discourse_test:slim
timeout-minutes: 30 timeout-minutes: 10
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@v3
with: with:
fetch-depth: 1 fetch-depth: 1
@ -25,7 +28,7 @@ jobs:
git config --global user.name "Discourse CI" git config --global user.name "Discourse CI"
- name: Bundler cache - name: Bundler cache
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: vendor/bundle path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
@ -49,7 +52,7 @@ jobs:
run: echo "::set-output name=dir::$(yarn cache dir)" run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Yarn cache - name: Yarn cache
uses: actions/cache@v2 uses: actions/cache@v3
id: yarn-cache id: yarn-cache
with: with:
path: ${{ steps.yarn-cache-dir.outputs.dir }} path: ${{ steps.yarn-cache-dir.outputs.dir }}
@ -69,5 +72,5 @@ jobs:
- name: Check Yarn Licenses - name: Check Yarn Licenses
if: ${{ always() }} if: ${{ always() }}
run: | run: |
yarn add licensee yarn global add licensee
yarn exec licensee -- --errors-only licensee --errors-only

View File

@ -18,7 +18,7 @@ jobs:
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@v3
with: with:
fetch-depth: 1 fetch-depth: 1

View File

@ -43,7 +43,7 @@ jobs:
target: core-plugins target: core-plugins
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@v3
with: with:
fetch-depth: 1 fetch-depth: 1