feat: add alist endpoint. #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: Server CI | |
# Controls when the workflow will run | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "**" | |
- '!console/**' | |
- "!**.md" | |
pull_request: | |
branches: | |
- master | |
- release-* | |
paths: | |
- "**" | |
- '!console/**' | |
- "!**.md" | |
jobs: | |
checkConsole: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
cache: 'gradle' | |
java-version: 17 | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Build console with npm | |
run: | | |
./gradlew buildFrontend -x test | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
cache: 'gradle' | |
java-version: 17 | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Run tests | |
run: ./gradlew test | |
- name: Upload build dir if current step run failed. | |
uses: actions/[email protected] | |
if: ${{ failure() }} | |
with: | |
# Artifact name | |
name: testBuild | |
# A file, directory or wildcard pattern that describes what to upload | |
path: /home/runner/work/plugin-starter/plugin-starter/build | |
# The desired behavior if no files are found using the provided path. | |
if-no-files-found: warn | |
# Duration after which artifact will expire in days. 0 means using default retention.Minimum 1 day. Maximum 90 days unless changed from the repository settings page. | |
retention-days: 7 | |