atlasaction: gitlab ci #1274
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
name: Action CI (Deprecated) | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
sanity: | |
strategy: | |
matrix: | |
directory: [ migrations, migrations2 ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: init migrations folder | |
run: mkdir -p ${{ matrix.directory }} | |
- uses: ./ | |
with: | |
dev-url: sqlite://test?mode=memory&cache=shared&_fk=1 | |
dir: ${{ matrix.directory }} | |
code: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Use Node.js 16 | |
uses: actions/[email protected] | |
with: | |
node-version: 16.x | |
- name: Cache Dependencies | |
uses: actions/[email protected] | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install | |
run: npm i | |
- name: All | |
run: npm run all | |
- name: check dirty | |
run: git diff --quiet --exit-code |