Skip to content

Commit

Permalink
Enable testing in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-lednev committed Aug 19, 2023
1 parent a5f876a commit 6144409
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 114 deletions.
87 changes: 0 additions & 87 deletions .github/workflows/release.yml

This file was deleted.

49 changes: 22 additions & 27 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,34 @@
name: CI Test
name: Test

on:
pull_request:
branches:
- main
push:
# Sequence of patterns matched against refs/tags
branches:
- feature/*
- main

env:
PLUGIN_NAME: obsidian-day-planner # Change this to the name of your plugin-id folder
PLUGIN_NAME: time-block-planner

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '14.x' # You might need to adjust this value to your own version
- name: Build
id: build
run: |
npm install
npm run build --if-present
mkdir ${{ env.PLUGIN_NAME }}
cp dist/main.js manifest.json ${{ env.PLUGIN_NAME }}
zip -r ${{ env.PLUGIN_NAME }}.zip ${{ env.PLUGIN_NAME }}
ls
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
- name: Test
id: test
run: |
npm run test
- uses: actions/checkout@v2
with:
submodules: true

- uses: actions/setup-node@v1
with:
node-version: "16.x"

- name: Build
run: npm install

- name: Lint
run: npm run lint

- name: TypeScript
run: npm run typescript

- name: Test
run: npm run test

0 comments on commit 6144409

Please sign in to comment.