Skip to content

Commit

Permalink
add api3
Browse files Browse the repository at this point in the history
wip

wip

wip

wip
  • Loading branch information
kaylumah committed Nov 3, 2024
1 parent 8a22058 commit 9dde6ab
Show file tree
Hide file tree
Showing 11 changed files with 765 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,18 @@ jobs:
if-no-files-found: error
retention-days: 1

- name: Run API
if: matrix.os == 'ubuntu-latest'
shell: pwsh
run: |
dotnet publish func/func.csproj --output "api"
# - name: Run API
# if: matrix.os == 'ubuntu-latest'
# shell: pwsh
# run: |
# dotnet publish func/func.csproj --output "api"

- name: Upload tools
uses: actions/upload-artifact@v4
if: matrix.os == 'ubuntu-latest'
with:
name: ${{ format('api-{0}', matrix.os) }}
path: api
path: api3
if-no-files-found: error
retention-days: 1

Expand Down Expand Up @@ -219,7 +219,7 @@ jobs:
api_location: "api"
output_location: ""
skip_app_build: true
skip_api_build: true
skip_api_build: false

# Dotnet build is needed so we can use the playwright install
- name: Run E2e
Expand Down
2 changes: 1 addition & 1 deletion _site/_devtools/staticwebapp.config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"platform": {
"apiRuntime": "dotnet-isolated:6.0"
"apiRuntime": "node:18"
},
"routes": [
{% for redirect in site.data.redirects %}
Expand Down
10 changes: 10 additions & 0 deletions api3/.funcignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
*.js.map
*.ts
.git*
.vscode
__azurite_db*__.json
__blobstorage__
__queuestorage__
local.settings.json
test
tsconfig.json
99 changes: 99 additions & 0 deletions api3/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TypeScript output
dist
out

# Azure Functions artifacts
bin
obj
appsettings.json
local.settings.json

# Azurite artifacts
__blobstorage__
__queuestorage__
__azurite_db*__.json
15 changes: 15 additions & 0 deletions api3/host.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": "2.0",
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"excludedTypes": "Request"
}
}
},
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[4.*, 5.0.0)"
}
}
Loading

0 comments on commit 9dde6ab

Please sign in to comment.