Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Check

on:
push:
branches:
- main
paths:
- '.github/workflows/check.yml'
- 'src/resources/assets/**'
- 'src/public/**'
- 'package.json'
- 'package-lock.json'
pull_request:
paths:
- '.github/workflows/check.yml'
- 'src/resources/assets/**'
- 'src/public/**'
- 'package.json'
- 'package-lock.json'

jobs:
check-js:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1

- name: Set registry authentication token
run: echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" >> .npmrc
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Install dependencies
run: npm install

# Clone core to get access to the variabley stylesheet
- uses: actions/checkout@v1
with:
repository: biigle/core
ref: master
fetch-depth: 1
path: core

- name: Update variables stylesheet link
run: ln -sf ../../../../../core/resources/assets/sass/bootstrap/_variables.scss src/resources/assets/sass/_variables.scss

# Don't use "npm run build" because it also runs the artisan command
- name: Run Vite
run: npx vite build

- name: Check for uncommitted changes
run: '[ -z "$(git status -s --porcelain | grep public)" ]'
11 changes: 11 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,18 @@ on:
push:
branches:
- main
paths:
- '.github/workflows/lint.yml'
- 'src/resources/assets/**'
- 'package.json'
- 'package-lock.json'
pull_request:
paths:
- '.github/workflows/lint.yml'
- 'src/resources/assets/**'
- 'package.json'
- 'package-lock.json'


jobs:
lint:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,19 @@ on:
push:
branches:
- main
paths-ignore:
- 'src/resources/assets/**'
- 'src/resources/scripts/**'
- 'src/public/**'
- 'package.json'
- 'package-lock.json'
pull_request:
paths-ignore:
- 'src/resources/assets/**'
- 'src/resources/scripts/**'
- 'src/public/**'
- 'package.json'
- 'package-lock.json'

jobs:
test-module:
Expand Down Expand Up @@ -34,6 +46,12 @@ jobs:
run: cp .env.example .env
working-directory: ../core

- name: Update .env
run: |
echo USER_ID=$(id -u) >> .env
echo GROUP_ID=$(id -g) >> .env
working-directory: ../core

- name: Set testing key
run: echo "APP_KEY=base64:STZFA4bQKDjE2mlpRPmsJ/okG0eCh4RHd9BghtZeYmQ=" >> .env
working-directory: ../core
Expand Down