Skip to content

feat(folder): fix some folder errors and finished test for basic fold… #30

feat(folder): fix some folder errors and finished test for basic fold…

feat(folder): fix some folder errors and finished test for basic fold… #30

Workflow file for this run

### Generated with ChatGPT maybe has errors
name: Build and Release
on:
push:
branches:
- main
jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '21.6.2'
- name: Setup
run: |
npm install
npm ci --cache .npm
id: cache-deps
- name: Setup environment
env:
OAUTH2_KEYS: ${{ secrets.OAUTH2_KEYS }}
COOKIES_KEYS: ${{ secrets.COOKIES_KEYS }}
run: |
. ./keys-from-env.sh
- name: Generate openapi
run: |
npm run openapi:bundle
npm run openapi:types
- name: Test types
run: |
npm run test:ts
- name: Units tests
run: |
npm run test:units:coverage
- name: Functional tests
run: |
npm run test:functionals
- name: Build server package
run: |
npm run server:build
id: cache-build
# - name: Release
# run: |
# npx semantic-release --dry-run
# env:
# GH_TOKEN: ${{ secrets.GH_TOKEN }} # Token for generate tags on the repo
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # Token for publish on npmjs.com