Skip to content

Commit

Permalink
chore: setup CI
Browse files Browse the repository at this point in the history
  • Loading branch information
0gust1 committed Sep 11, 2023
1 parent cb75ccc commit 3598662
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and test

on:
workflow_dispatch:
push:

jobs:
build-base-image:
runs-on: ubuntu-latest

steps:
- run: |
echo "TAG=test" >> $GITHUB_ENV
- name: Config tag for main
if: ${{ github.ref == 'refs/heads/main' }}
run: |
echo "TAG=stable" >> $GITHUB_ENV
- name: Config tag for dev
if: ${{ github.ref == 'refs/heads/dev' }}
run: |
echo "TAG=latest" >> $GITHUB_ENV
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm ci
- run: npm run test

0 comments on commit 3598662

Please sign in to comment.