Skip to content

Commit

Permalink
update release wf and add a test wf (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Jul 20, 2023
1 parent c7b37cf commit 437207b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name: Build form.js

on:
create:
push:
tags:
- v*
- '*'

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [v12.19.1]
node-version: [16]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -33,7 +33,7 @@ jobs:
run: yarn build

# Upload artifact to GitHub
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: form.js
path: form.js
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Tests

on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

# Install Yarn for building
- name: Install Yarn
run: npm install yarn

- name: Install dependencies
run: yarn install

# Build form.js
- name: Build form.js with Webpack
run: yarn build

0 comments on commit 437207b

Please sign in to comment.