Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@ jobs:
- uses: actions/checkout@v3

- name: Sprkl Setup
uses: sprkl-dev/sprkl-action/setup@master # The actual version is parameter
uses: sprkl-dev/sprkl-action/setup@4ab61ee394f453789f6b6a051e23258d21a9ab7a # The actual version is parameter
with:
token: ${{ secrets.USE_SPRKL_CI_TOKEN }}
setenv: false

- run: yarn install
- run: yarn test:e2e:sprkl
env:
SPRKL_RECIPE: all

4 changes: 4 additions & 0 deletions metrics/metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ mongoose.connect(`mongodb://${process.env.MONGO_HOST}/mern`, {
useCreateIndex: true,
});

console.log("hello");

app.get('/metrics', async (req, res) => {
const metrics = await utils.getMetrics();
res.send({
Expand All @@ -38,6 +40,8 @@ app.post('/metrics', async (req, res) => {
}
})

console.log("aaaaaa")

// app.put('/updateMetrics', async (req, res) => {
// try {
// const metrics = await utils.retrieveMetrics();
Expand Down