DEV: Update CI workflows (#115)

Co-authored-by: discoursebuild <build@discourse.org>
This commit is contained in:
discoursebot 2022-03-22 09:06:27 -04:00 committed by GitHub
parent 044c18e904
commit c4093e6820
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Node.js - name: Set up Node.js
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: 16
cache: yarn cache: yarn

View File

@ -31,13 +31,13 @@ jobs:
build_type: ["backend", "frontend-legacy", "frontend"] build_type: ["backend", "frontend-legacy", "frontend"]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
repository: discourse/discourse repository: discourse/discourse
fetch-depth: 1 fetch-depth: 1
- name: Install plugin - name: Install plugin
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
path: plugins/${{ github.event.repository.name }} path: plugins/${{ github.event.repository.name }}
fetch-depth: 1 fetch-depth: 1
@ -58,7 +58,7 @@ jobs:
sudo -u postgres psql -c "CREATE ROLE $PGUSER LOGIN SUPERUSER PASSWORD '$PGPASSWORD';" sudo -u postgres psql -c "CREATE ROLE $PGUSER LOGIN SUPERUSER PASSWORD '$PGPASSWORD';"
- 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') }}
@ -83,7 +83,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 }}
@ -95,7 +95,7 @@ jobs:
run: yarn install run: yarn install
- name: Fetch app state cache - name: Fetch app state cache
uses: actions/cache@v2 uses: actions/cache@v3
id: app-cache id: app-cache
with: with:
path: tmp/app-cache path: tmp/app-cache